MEMORY { ZEROPAGE: start = $0000, size = $100, type = rw, file = ""; STACK: start = $0100, size = $100, type = rw, file = ""; RAM: start = $0200, size = $600, type = rw, file = ""; LORAM: start = $0800, size = $1800, type = rw, file = ""; PRG: start = $8000, size = $8000, type = ro, file = %O, fill = yes, fillval = 0; } SEGMENTS { ZEROPAGE: load = ZEROPAGE, type = zp; STACK: load = STACK, type = bss, optional = yes; OAM: load = RAM, type = bss, align = $100, optional = yes; CSTACK: load = RAM, type = bss, define = yes; BSS: load = RAM, type = bss, define = yes; SNESRAM: load = LORAM, type = bss, define = yes; DATA: load = PRG, run = RAM, type = rw, define = yes, optional = yes; RODATA: load = PRG, type = ro, optional = yes; CODE: load = PRG, type = ro, optional = yes; STUB: load = PRG, type = ro, start = $FFA0; HEADER: load = PRG, type = ro, start = $FFC0; }