SAP-1 Assembler

Single-file, SystemVerilog-aware output • Auto line numbers

Assembly (left) → .mem preview (right)

Assembler Output (.mem)

Actions

Opcodes: NOP, LDA, ADDI, ADDM, SUBM, STA, OUTA, OUTI, HLT • Immediate: use #0xA, #10, or #AData: .db 0xNN • Labels with name: • Comments ; or //
Put your Nexys-A7-100T-Master.xdc in constraints/ and uncomment only the nets you use.
SystemVerilog note: the emitted rom16x8.sv embeds the ROM bytes (no $readmemh needed). For VGA builds, the top-level and overlay are included in the pack/ZIP automatically.