BinASM Assembly Language VS Code Extension

Syntax highlighting, code snippets, and real-time linter for BinASM - certified semantic x86-64 assembler & L1 structured assembly language.
📦 Features
Syntax Highlighting
- Two dialects: AOT (programa + main) and Interpreter (statements + end;)
- Instructions: Integer, SSE (scalar & packed), AVX2
- Registers: GPR (8/16/32/64-bit), XMM, YMM, flags
- Directives:
.section, .align, .org, .global, .extern, .guard, .equ, .dll, .export
- Data definitions:
db, dw, dd, dq
- Numbers: Decimal, hexadecimal (
0x), binary (0b)
- Strings and comments
Code Snippets (15+)
| Prefix |
Description |
binasm-aot |
AOT program skeleton |
binasm-interp |
Interpreter program skeleton |
binasm-l1 |
L1 structured program |
binasm-data |
Data section with strings |
binasm-pe-window |
PE32+ Win32 GUI window template |
binasm-dll |
DLL export with C-compatible thunk |
binasm-dll-init |
DLL with init export and state |
binasm-sse-float |
SSE scalar f32 operations |
binasm-sse-packed |
SSE packed f32 (4 lanes) |
binasm-avx2 |
AVX2 256-bit packed operations |
binasm-func |
Function with stack frame |
binasm-if |
Conditional jump pattern |
binasm-loop |
Loop with rcx counter |
binasm-guard |
Runtime guard configuration |
binasm-agent |
Agent protocol request |
Real-time Linting
The extension provides real-time diagnostics for:
- Dialect conflicts: Mixing AOT (
programa) and interpreter (end;) syntax
- Omninum usage: Interpreter-only constants (
PI, OMEGA, EPS, etc.) flagged in AOT
- Hex in data directives:
db/dw/dd/dq with 0x... not allowed (use decimal)
- cmp immediate range: Must fit in signed 8-bit (-128..127)
- Shift register size: Requires 64-bit registers (not eax/ebx/etc.)
- jz/jnz: Use
je/jne instead
- Memory immediate moves: Load into register first
- Undefined function calls: Warns about missing
.extern declarations
- Guard configuration: Validates region sizes
- DLL limits: Only one
.dll directive per artifact
- Export raw: Validates data section usage
- Alignment values: Must be positive
🚀 Installation
- Download
binasm-vscode-1.0.0.vsix from the releases folder
- Open VS Code
- Extensions → "..." (ellipsis) → Install from VSIX...
- Select the
.vsix file
📋 Requirements
🎨 Icon Sizes Included
| File |
Size |
Use |
icon.svg |
Vector |
Source for generating other sizes |
icon.png |
128×128 px |
Main extension icon |
icon128.png |
128×128 px |
Detail view |
icon48.png |
48×48 px |
Extension list |
icon32.png |
32×32 px |
Context menu |
icon24.png |
24×24 px |
Toolbar |
🔧 BinASM Language Reference
BinASM is a certified semantic x86-64 assembler with two dialects:
AOT Dialect (Compiled)
programa "demo"
main {
mov rax, 42
add rax, 7
ret
}
Interpreter Dialect
mov rax, 42
add rax, 7
ret
end;
L1 Structured Assembly
var buf: u8[64];
var n = read(buf, 64);
print "hello";
Key Features
- Output formats:
.bin, .img, .elf, .o, .exe (PE32+), .dll (PE32+)
- Certification: Every byte verified against Capstone (encoding) & Unicorn (execution)
- DLL exports: C-compatible thunks (up to 6 args), import library for static linking
- Runtime guard: Memory protection policies
- Agent protocol: IR → bytes for LLM integration
📚 Credits
- BinASM Language: NuToys Audio / SpAMS-Oficial
- Original Extension: Martin Alejandro Oviedo
- Maintained by: Asistente IA (OpenCode) alias El teclas :P
- Extension: Part of the SpASM ecosystem
📄 License
MIT License - see LICENSE file.
Generated with ❤️ for the BinASM community
| |