MEMORY { ZP: start = $10, size = $f0, type = rw; # use first $10 zeropage locations as locals HEADER: start = $7f00, size = $0010, type = ro, file = %O; RAM: start = $0300, size = $0500, type = rw; ROM: start = $C000, size = $8000, type = ro, file = %O; } SEGMENTS { INESHDR: load = HEADER, type = ro, align = $10; ZEROPAGE: load = ZP, type = zp; DATA: load = ROM, run = RAM, type = rw, define = yes, align = $100; BSS: load = RAM, type = bss, define = yes, align = $100; CODE: load = ROM, type = ro, align = $100; RODATA: load = ROM, type = ro, align = $100; DMC: load = ROM, type = ro, align = $40; VECTORS: load = ROM, type = ro, start = $FFFA; } FILES { %O: format = bin; }