From 21a4249952f3071e924be6d40069886a0fa0871a Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 29 Jun 2023 11:24:09 +0200 Subject: [PATCH] update linker config --- examples/asm/linker.cfg | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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