From f614a757171b79c76db0d2601361c53eeab97e6c Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Wed, 22 Jan 2014 18:13:04 +0100 Subject: [PATCH] add ZEROPAGE segment to apple2-asm.cfg and c64-asm.cfg --- cfg/apple2-asm.cfg | 12 +++++++----- cfg/c64-asm.cfg | 2 ++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/cfg/apple2-asm.cfg b/cfg/apple2-asm.cfg index e70ed4484..1e187764c 100644 --- a/cfg/apple2-asm.cfg +++ b/cfg/apple2-asm.cfg @@ -8,13 +8,15 @@ SYMBOLS { __LOADSIZE__: type = weak, value = __BSS_RUN__ - __CODE_RUN__; } MEMORY { + ZP: start = $0080, size = $001A, define = yes; HEADER: file = %O, start = $0000, size = $0004; RAM: file = %O, start = %S, size = $C000 - %S; } SEGMENTS { - EXEHDR: load = HEADER, type = ro, optional = yes; - CODE: load = RAM, type = rw, optional = yes, define = yes; - RODATA: load = RAM, type = ro, optional = yes; - DATA: load = RAM, type = rw, optional = yes; - BSS: load = RAM, type = bss, optional = yes, define = yes; + ZEROPAGE: load = ZP, type = zp, optional = yes; + EXEHDR: load = HEADER, type = ro, optional = yes; + CODE: load = RAM, type = rw, optional = yes, define = yes; + RODATA: load = RAM, type = ro, optional = yes; + DATA: load = RAM, type = rw, optional = yes; + BSS: load = RAM, type = bss, optional = yes, define = yes; } diff --git a/cfg/c64-asm.cfg b/cfg/c64-asm.cfg index 0924cdb56..1ab80be8e 100644 --- a/cfg/c64-asm.cfg +++ b/cfg/c64-asm.cfg @@ -5,6 +5,7 @@ SYMBOLS { __LOADADDR__: type = import; } MEMORY { + ZP: file = "", start = $0002, size = $001A, define = yes; LOADADDR: file = %O, start = %S - 2, size = $0002; RAM: file = %O, start = %S, size = $D000 - %S; } @@ -15,4 +16,5 @@ SEGMENTS { RODATA: load = RAM, type = ro, optional = yes; DATA: load = RAM, type = rw, optional = yes; BSS: load = RAM, type = bss, optional = yes; + ZEROPAGE: load = ZP, type = zp, optional = yes; } -- 2.39.5