Skip to content

LINUX

VIREX SETUP

  1. Clone this repo

  2. Build the project (requires sudo)

  3. Run VIREX

    bash commands
    # 1. CLONING
    git clone https://github.com/Soham-Metha/virex.git
    cd virex/
    
    # 2. BUILD (sudo)
    ./install.sh
    
    # 3. RUN VIREX (in the sample programs DIR)
    cd ./examples/SASM/
    virex
    
    UI doesn't render properly

    If the TUI doesn't render properly, try adjusting your terminal font size.

    If that doesn't help, you can tweak layout values in src/VM/vm_tui.c::CreateWindows(). The constants used are defined as percentages of the screen dimensions.

    P.S. kitty terminal config, and font used, are available in /tools

Execute Sample Programs

  1. Setup and Execute Virex (In the Sample Programs DIR)
  2. Select "Assemble and Execute the Simulated Assembly Code"

    Note

    ⌨️ use Arrow keys for navigation in menu.

  3. Enter the file names (Ex. helloWorld.sasm and helloWorld.sm)

  4. Choose 2. ( 1 for executing in step mode )

Activate the syntax highlighter in VS Code

  1. Open VS Code
  2. Press Ctrl + Shift + P
  3. Type: Preferences: Color Theme
  4. Select: Palenight+sasm

    Example

    🎨 Open any .sasm file in vs code to see the syntax highlighter at work!