Run, inspect, and learn MIPS assembly directly inside VS Code using the MARS simulator.
Available in VSCode Extensions Marketplace!
- Run
.asm/.sfiles with one click - Uses MARS under the hood
- Optional stdin input support
- View CPU registers in Explorer
- See values in:
- Hex
- Decimal
- Both
- Highlights changed registers between runs
- Optional detailed webview panel
- Inspect memory ranges
- Configurable start/end addresses
- Change highlighting
- Syntax highlighting for MIPS
- Instruction, register, directive coloring
- Auto-complete:
- Instructions
- Registers
- Directives
- Labels
- Snippets for common instructions
- Hover instructions → explanation
- Hover registers → description
- Hover syscalls → behavior
- Unknown instructions
- Duplicate labels
- Undefined labels
- Parsed MARS errors
- Install the extension
- Open a
.asmor.sfile - Click ▶ Run MARS
- View:
- Output panel
- Registers panel
- Memory panel
Open VS Code settings and configure:
"mars-extension.javaPath": "java",
"mars-extension.marsJarPath": "",
"mars-extension.displayFormat": "both",
"mars-extension.memoryStartAddress": "0x10010000",
"mars-extension.memoryEndAddress": "0x10010040"