Save Point
README.md
mastersystem.asm
A two-pass Z80 assembler (Zilog syntax) written in Luau, used to build the
Master System package's homebrew carts inside the engine; any Z80 machine's
homebrew (SG-1000, MSX, ColecoVision, Spectrum) can use it too. Labels and
.local labels, equ/=, org, db/dw/ds, align, assert, expressions
($ = here, lo()/hi()), and the full documented instruction set with
IX/IY, CB and ED groups (see the header of init.luau).
local Asm = require("mastersystem.asm")
local bin, symbols = Asm.assemble(sourceText, { org = 0, size = 0x8000, fill = 0xFF })