MEMORY { RAM_ZP: start = $0000, size = $0100, type = rw, file = "", fill = yes; # RAM: start = $0100, size = $5eff, type = rw, file = "", fill = yes; STACK: start = $0100, size = $0100, type = rw, file = "", fill = yes; RAM: start = $0200, size = $4e00, type = rw, file = "", fill = yes; SPI: start = $5000, size = $1000, type = rw, file = "../spi.bin", fill = no; VIA1: start = $6000, size = $000f, type = rw, file = "", fill = yes; VIA2: start = $7000, size = $000f, type = rw, file = "", fill = yes; ROM: start = $8000, size = $8000, type = ro, file = %O, fill = yes; } SEGMENTS { VIA1: load = VIA1, type = bss; VIA2: load = VIA2, type = bss; ZEROPAGE: load = RAM_ZP, type = bss, start = $0; BSS: load = RAM, type = bss; CODE: load = ROM, type = ro; RODATA: load = ROM, type = ro; RESET_VECTOR: load = ROM, type = ro, start = $FFFA; SPI: load = SPI, type = rw; }