BedRock Language — VS Code Extension v0.2
Syntax highlighting, real-time diagnostics, built-in MIPS emulator, and register inspector for BedRock.
What's New in v0.2
- Built-in MIPS Emulator — no external tools needed. Executes
.bin files directly inside the extension.
- Register Inspector Panel — live WebView showing all 32 MIPS registers (hex + decimal), PC, disassembly, and instruction count.
- Launch Button —
▶ button in the editor title bar compiles and starts debugging in one click.
Features
| Feature |
Description |
| Syntax Highlighting |
Keywords, builtins (poke,peek,asm...), hex numbers, strings |
| Real-time Diagnostics |
Red underlines as you type — missing ;, unsupported !, bad array literals |
| Compiler Auto-detect |
Finds bedrockco.exe across the whole machine on startup |
| Built-in Emulator |
Executes MIPS-I binary, supports all BedRock-generated opcodes |
| Register Panel |
Live view of all 32 registers, PC, disassembly, instruction count |
| Breakpoints |
Set in editor, emulator stops at matching address |
| Step / Continue |
F10 = step one instruction, F5 = run to next breakpoint |
Usage
- Open any
.br file
- Click the ▶ button in the top-right of the editor (or
Ctrl+Shift+P → BedRock: Compile & Debug)
- The extension compiles and opens the Register Inspector panel automatically
Compiler Auto-detection
Searches in order:
- VS Code setting
bedrock.compilerPath
- Workspace folder
- System PATH
- Common locations (
C:\BedRock\, ~/.cargo/bin/, etc.)
- Full
C:\ scan (Windows)
If not found → notification with Download and Select Manually options.
Download Compiler
https://github.com/mrDevRussia/BedRock-Language-Open-Source/releases
Debug Configuration (.vscode/launch.json)
{
"version": "0.2.0",
"configurations": [{
"type": "bedrock",
"request": "launch",
"name": "BedRock: Debug",
"program": "${file}"
}]
}
Emulator — Supported Instructions
All instructions generated by the BedRock compiler are supported:
addu, subu, and, or, xor, nor, slt, sltu,
sll, srl, sra, sllv, srlv,
mult, multu, div, divu, mflo, mfhi,
lw, sw, lb, lbu, lh, lhu, sb, sh,
lui, ori, andi, xori, addiu,
beq, bne, blez, bgtz, j, jal, jr, jalr
| |