From 92d5130220db39ce7fa93e92d5af2f100e835340 Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 30 Dec 2003 08:09:08 +0000 Subject: [PATCH] Improved PET-II support git-svn-id: svn://svn.cc65.org/cc65/trunk@2857 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ld65/cfg/cbm510.cfg | 27 ++++++++++++++++++--------- src/ld65/cfg/cbm610.cfg | 4 ++-- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/ld65/cfg/cbm510.cfg b/src/ld65/cfg/cbm510.cfg index f11e5cc7b..04f0654e8 100644 --- a/src/ld65/cfg/cbm510.cfg +++ b/src/ld65/cfg/cbm510.cfg @@ -1,16 +1,25 @@ MEMORY { - ZP: start = $02, size = $8E, type = rw, define = yes; - RAM: start = $0001, size = $DFFF, file = %O; + BASICHDR: start = $01, size = $50, type = rw, fill = yes, fillval = 0, file = %O; + ZP: start = $51, size = $A6, type = rw, define = yes, fill = yes, fillval = 0, file = %O; + STARTUP: start = $00F7, size = $109, fill = yes, fillval = 0, file = %O; + PAGE2: start = $0200, size = $100, fill = yes, fillval = 0, file = %O; + PAGE3: start = $0300, size = $100, fill = yes, fillval = 0, file = %O; + RAM: start = $0400, size = $DC00, file = %O; CHARRAM: start = $E000, size = $1000, define = yes, file = ""; - VIDRAM: start = $F000, size = $0400, define = yes, file = ""; + VIDRAM: start = $F000, size = $0400, define = yes, file = ""; } SEGMENTS { - CODE: load = RAM, type = wprot; - RODATA: load = RAM, type = wprot; - DATA: load = RAM, type = rw; - BSS: load = RAM, type = bss, define = yes; - ZEROPAGE: load = ZP, type = zp; - EXTZP: load = ZP, type = zp, define = yes; + BASICHDR: load = BASICHDR, type = rw; + STARTUP: load = STARTUP, type = rw; + PAGE2: load = PAGE2, type = rw; + PAGE3: load = PAGE3, type = rw; + LOWCODE: load = RAM, type = wprot, optional = yes; + CODE: load = RAM, type = wprot; + RODATA: load = RAM, type = wprot; + DATA: load = RAM, type = rw; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp; + EXTZP: load = ZP, type = rw, define = yes; } FEATURES { CONDES: segment = RODATA, diff --git a/src/ld65/cfg/cbm610.cfg b/src/ld65/cfg/cbm610.cfg index 1727cd097..dbc1e8674 100644 --- a/src/ld65/cfg/cbm610.cfg +++ b/src/ld65/cfg/cbm610.cfg @@ -1,7 +1,7 @@ MEMORY { BASICHDR: start = $01, size = $50, type = rw, fill = yes, fillval = 0, file = %O; - ZP: start = $51, size = $A6, type = rw, define = yes, fill = yes, fillval = 0, file = %O; - STARTUP: start = $00F7, size = $109, fill = yes, fillval = 0, file = %O; + ZP: start = $51, size = $AD, type = rw, define = yes, fill = yes, fillval = 0, file = %O; + STARTUP: start = $00FE, size = $102, fill = yes, fillval = 0, file = %O; PAGE2: start = $0200, size = $100, fill = yes, fillval = 0, file = %O; PAGE3: start = $0300, size = $100, fill = yes, fillval = 0, file = %O; RAM: start = $0400, size = $FAAE, file = %O; -- 2.39.5