diff --git a/examples/asm/linker.cfg b/examples/asm/linker.cfg index 0a82281..1f8f615 100644 --- a/examples/asm/linker.cfg +++ b/examples/asm/linker.cfg @@ -1,11 +1,11 @@ MEMORY { - ZP: start = $0000, size = $0100, type = rw, define = yes; - RAM: start = $0100, size = $0200, type = rw, define = yes; - ROM: start = $8000, size = $8000, type = ro; + RAM: start = $0000, size=$8000, type = rw, fill = yes, fillval = $FF, file = %O; + ROM: start = $8000, size=$7FFA, type = ro, fill = yes, fillval = $FF, file = %O; + ROM_VECTORS: start = $FFFA, size=6, type = ro, fill = yes, fillval = $FF, file = %O; } - SEGMENTS { - ZEROPAGE: load = ZP, type = zp; - DATA: load = RAM, type = rw; - CODE: load = ROM, type = ro; -} + ZEROPAGE: load=RAM, type=rw; + DATA: load=RAM, type=rw, offset=$0200; + CODE: load=RAM, type=rw, offset=$0400; + VECTORS: load=ROM_VECTORS, type=ro; +} \ No newline at end of file