From 34017fb89a9336de1b32df270c76b800d6c338d0 Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 25 Feb 2005 07:52:50 +0000 Subject: [PATCH] Added the new INIT segment to all configs and adjusted formatting. git-svn-id: svn://svn.cc65.org/cc65/trunk@3402 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ld65/cfg/apple2-tgi.cfg | 23 +++++++++-------- src/ld65/cfg/apple2.cfg | 23 +++++++++-------- src/ld65/cfg/atari.cfg | 22 +++++++++------- src/ld65/cfg/atmos.cfg | 23 +++++++++-------- src/ld65/cfg/bbc.cfg | 17 +++++++----- src/ld65/cfg/c128.cfg | 21 ++++++++------- src/ld65/cfg/c16.cfg | 21 ++++++++------- src/ld65/cfg/c64.cfg | 21 ++++++++------- src/ld65/cfg/cbm510.cfg | 21 ++++++++------- src/ld65/cfg/cbm610.cfg | 17 ++++++------ src/ld65/cfg/geos.cfg | 25 +++++++++--------- src/ld65/cfg/lunix.cfg | 5 ++-- src/ld65/cfg/lynx.cfg | 27 +++++++++---------- src/ld65/cfg/nes.cfg | 13 +++++----- src/ld65/cfg/none.cfg | 16 +++++++----- src/ld65/cfg/osa65.cfg | 10 ++++--- src/ld65/cfg/pet.cfg | 17 ++++++------ src/ld65/cfg/plus4.cfg | 19 +++++++------- src/ld65/cfg/supervision.cfg | 26 ++++++++++--------- src/ld65/cfg/supervision128.cfg | 46 +++++++++++++++++---------------- src/ld65/cfg/supervision16.cfg | 26 ++++++++++--------- src/ld65/cfg/supervision64.cfg | 32 ++++++++++++----------- src/ld65/cfg/vic20.cfg | 19 +++++++------- 23 files changed, 261 insertions(+), 229 deletions(-) diff --git a/src/ld65/cfg/apple2-tgi.cfg b/src/ld65/cfg/apple2-tgi.cfg index 36055b31a..c8d01d727 100644 --- a/src/ld65/cfg/apple2-tgi.cfg +++ b/src/ld65/cfg/apple2-tgi.cfg @@ -1,17 +1,18 @@ MEMORY { - ZP: start = $00, size = $1A, type = rw, define = yes; - HEADER: start = $0000, size = $4, file = %O; - RAM: start = $4000, size = $7600, file = %O; + ZP: start = $0000, size = $001A, type = rw, define = yes; + HEADER: start = $0000, size = $0004, file = %O; + RAM: start = $4000, size = $7600, file = %O; } SEGMENTS { - EXEHDR: load = HEADER, type = ro; - STARTUP: load = RAM, type = ro, define = yes; - LOWCODE: load = RAM, type = ro; - CODE: load = RAM, type = ro; - RODATA: load = RAM, type = ro; - DATA: load = RAM, type = rw; - BSS: load = RAM, type = bss, define = yes; - ZEROPAGE: load = ZP, type = zp; + EXEHDR: load = HEADER, type = ro; + STARTUP: load = RAM, type = ro, define = yes; + LOWCODE: load = RAM, type = ro, optional = yes; + INIT: load = RAM, type = ro, define = yes, optional = yes; + CODE: load = RAM, type = ro; + RODATA: load = RAM, type = ro; + DATA: load = RAM, type = rw; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = RODATA, diff --git a/src/ld65/cfg/apple2.cfg b/src/ld65/cfg/apple2.cfg index c0f552dbd..250b5c063 100644 --- a/src/ld65/cfg/apple2.cfg +++ b/src/ld65/cfg/apple2.cfg @@ -1,17 +1,18 @@ MEMORY { - ZP: start = $00, size = $1A, type = rw, define = yes; - HEADER: start = $0000, size = $4, file = %O; - RAM: start = $800, size = $8E00, file = %O; + ZP: start = $0000, size = $001A, type = rw, define = yes; + HEADER: start = $0000, size = $0004, file = %O; + RAM: start = $0800, size = $8E00, file = %O; } SEGMENTS { - EXEHDR: load = HEADER, type = ro; - STARTUP: load = RAM, type = ro, define = yes; - LOWCODE: load = RAM, type = ro, optional = yes; - CODE: load = RAM, type = ro; - RODATA: load = RAM, type = ro; - DATA: load = RAM, type = rw; - BSS: load = RAM, type = bss, define = yes; - ZEROPAGE: load = ZP, type = zp; + EXEHDR: load = HEADER, type = ro; + STARTUP: load = RAM, type = ro, define = yes; + LOWCODE: load = RAM, type = ro, optional = yes; + INIT: load = RAM, type = ro, define = yes, optional = yes; + CODE: load = RAM, type = ro; + RODATA: load = RAM, type = ro; + DATA: load = RAM, type = rw; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = RODATA, diff --git a/src/ld65/cfg/atari.cfg b/src/ld65/cfg/atari.cfg index ba8dcfde6..bf817b3af 100644 --- a/src/ld65/cfg/atari.cfg +++ b/src/ld65/cfg/atari.cfg @@ -1,16 +1,18 @@ MEMORY { - ZP: start = $82, size = $7E, type = rw, define = yes; - HEADER: start = $0000, size = $6, file = %O; - RAM: start = $2E00, size = $8E20, file = %O; # $8E20: matches upper bound $BC1F + ZP: start = $0082, size = $007E, type = rw, define = yes; + HEADER: start = $0000, size = $0006, file = %O; + RAM: start = $2E00, size = $8E20, file = %O; # $8E20: matches upper bound $BC1F } SEGMENTS { - EXEHDR: load = HEADER, type = ro; - CODE: load = RAM, type = ro, define = yes; - RODATA: load = RAM, type = ro; - DATA: load = RAM, type = rw; - BSS: load = RAM, type = bss, define = yes; - ZEROPAGE: load = ZP, type = zp; - AUTOSTRT: load = RAM, type = ro; + EXEHDR: load = HEADER, type = ro; + LOWCODE: load = RAM, type = ro, optional = yes; + INIT: load = RAM, type = ro, define = yes, optional = yes; + CODE: load = RAM, type = ro, define = yes; + RODATA: load = RAM, type = ro; + DATA: load = RAM, type = rw; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp; + AUTOSTRT: load = RAM, type = ro; } FEATURES { CONDES: segment = RODATA, diff --git a/src/ld65/cfg/atmos.cfg b/src/ld65/cfg/atmos.cfg index 447889e0a..a9c7c0718 100644 --- a/src/ld65/cfg/atmos.cfg +++ b/src/ld65/cfg/atmos.cfg @@ -1,17 +1,18 @@ MEMORY { - ZP: start = $E2, size = $1A, type = rw, define = yes; - TAPEHDR: start = $000, size= 14, type = ro, file = %O; - RAM: start = $0500, size = $9300, define = yes, file = %O; + ZP: start = $00E2, size = $001A, type = rw, define = yes; + TAPEHDR: start = $0000, size = $000E, type = ro, file = %O; + RAM: start = $0500, size = $9300, file = %O, define = yes; } SEGMENTS { - TAPEHDR: load = TAPEHDR, type = ro; - STARTUP: load = RAM, type = ro; - LOWCODE: load = RAM, type = ro, optional = yes; - CODE: load = RAM, type = ro; - RODATA: load = RAM, type = ro; - DATA: load = RAM, type = rw; - BSS: load = RAM, type = bss, define = yes; - ZEROPAGE: load = ZP, type = zp; + TAPEHDR: load = TAPEHDR, type = ro; + STARTUP: load = RAM, type = ro; + LOWCODE: load = RAM, type = ro, optional = yes; + INIT: load = RAM, type = ro, define = yes, optional = yes; + CODE: load = RAM, type = ro; + RODATA: load = RAM, type = ro; + DATA: load = RAM, type = rw; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = RODATA, diff --git a/src/ld65/cfg/bbc.cfg b/src/ld65/cfg/bbc.cfg index 0487733dd..8b6fe2d23 100644 --- a/src/ld65/cfg/bbc.cfg +++ b/src/ld65/cfg/bbc.cfg @@ -1,13 +1,16 @@ MEMORY { - ZP: start = $70, size = $20, type = rw, define = yes; - RAM: start = $E00, size = $7200, file = %O; + ZP: start = $0070, size = $0020, type = rw, define = yes; + RAM: start = $0E00, size = $7200, file = %O; } SEGMENTS { - CODE: load = RAM, type = ro; - RODATA: load = RAM, type = ro; - DATA: load = RAM, type = rw; - BSS: load = RAM, type = bss, define = yes; - ZEROPAGE: load = ZP, type = zp; + STARTUP: load = RAM, type = ro, define = yes; + LOWCODE: load = RAM, type = ro, optional = yes; + INIT: load = RAM, type = ro, define = yes, optional = yes; + CODE: load = RAM, type = ro; + RODATA: load = RAM, type = ro; + DATA: load = RAM, type = rw; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = RODATA, diff --git a/src/ld65/cfg/c128.cfg b/src/ld65/cfg/c128.cfg index d3b91dc13..b5f894ff4 100644 --- a/src/ld65/cfg/c128.cfg +++ b/src/ld65/cfg/c128.cfg @@ -1,15 +1,16 @@ -MEMORY { - ZP: start = $02, size = $1A, type = rw, define = yes; - RAM: start = $1bff, size = $a401, define = yes, file = %O; +MEMORY { + ZP: start = $0002, size = $001A, type = rw, define = yes; + RAM: start = $1Bff, size = $A401, file = %O, define = yes; } SEGMENTS { - STARTUP: load = RAM, type = ro; - LOWCODE: load = RAM, type = ro, optional = yes; - CODE: load = RAM, type = ro; - RODATA: load = RAM, type = ro; - DATA: load = RAM, type = rw; - BSS: load = RAM, type = bss, define = yes; - ZEROPAGE: load = ZP, type = zp; + STARTUP: load = RAM, type = ro; + LOWCODE: load = RAM, type = ro, optional = yes; + INIT: load = RAM, type = ro, define = yes, optional = yes; + CODE: load = RAM, type = ro; + RODATA: load = RAM, type = ro; + DATA: load = RAM, type = rw; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = RODATA, diff --git a/src/ld65/cfg/c16.cfg b/src/ld65/cfg/c16.cfg index b01383494..fc51667bf 100644 --- a/src/ld65/cfg/c16.cfg +++ b/src/ld65/cfg/c16.cfg @@ -1,15 +1,16 @@ MEMORY { - ZP: start = $02, size = $1A, type = rw, define = yes; - RAM: start = $0fff, size = $7001, file = %O; -} + ZP: start = $0002, size = $001A, type = rw, define = yes; + RAM: start = $0FFF, size = $7001, file = %O; +} SEGMENTS { - STARTUP: load = RAM, type = ro; - LOWCODE: load = RAM, type = ro, optional = yes; - CODE: load = RAM, type = ro; - RODATA: load = RAM, type = ro; - DATA: load = RAM, type = rw; - BSS: load = RAM, type = bss, define = yes; - ZEROPAGE: load = ZP, type = zp; + STARTUP: load = RAM, type = ro; + LOWCODE: load = RAM, type = ro, optional = yes; + INIT: load = RAM, type = ro, define = yes, optional = yes; + CODE: load = RAM, type = ro; + RODATA: load = RAM, type = ro; + DATA: load = RAM, type = rw; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = RODATA, diff --git a/src/ld65/cfg/c64.cfg b/src/ld65/cfg/c64.cfg index a7b4a7e41..4517ed703 100644 --- a/src/ld65/cfg/c64.cfg +++ b/src/ld65/cfg/c64.cfg @@ -1,17 +1,18 @@ MEMORY { - ZP: start = $02, size = $1A, type = rw, define = yes; - RAM: start = $7FF, size = $c801, define = yes, file = %O; + ZP: start = $0002, size = $001A, type = rw, define = yes; + RAM: start = $07FF, size = $C801, file = %O, define = yes; } SEGMENTS { - STARTUP: load = RAM, type = ro; - LOWCODE: load = RAM, type = ro, optional = yes; - CODE: load = RAM, type = ro; - RODATA: load = RAM, type = ro; - DATA: load = RAM, type = rw; - BSS: load = RAM, type = bss, define = yes; - ZEROPAGE: load = ZP, type = zp; + STARTUP: load = RAM, type = ro; + LOWCODE: load = RAM, type = ro, optional = yes; + INIT: load = RAM, type = ro, define = yes, optional = yes; + CODE: load = RAM, type = ro; + RODATA: load = RAM, type = ro; + DATA: load = RAM, type = rw; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp; } -FEATURES { +FEATURES { CONDES: segment = RODATA, type = constructor, label = __CONSTRUCTOR_TABLE__, diff --git a/src/ld65/cfg/cbm510.cfg b/src/ld65/cfg/cbm510.cfg index 46e977350..84ea0cc50 100644 --- a/src/ld65/cfg/cbm510.cfg +++ b/src/ld65/cfg/cbm510.cfg @@ -1,25 +1,26 @@ 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; - 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 = ""; + BASICHDR: start = $0001, size = $0050, fill = yes, fillval = 0, type = rw, file = %O; + ZP: start = $0051, size = $00A6, fill = yes, fillval = 0, type = rw, file = %O, define = yes; + STARTUP: start = $00F7, size = $0109, fill = yes, fillval = 0, file = %O; + PAGE2: start = $0200, size = $0100, fill = yes, fillval = 0, file = %O; + PAGE3: start = $0300, size = $0100, 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 = ""; } SEGMENTS { BASICHDR: load = BASICHDR, type = rw; STARTUP: load = STARTUP, type = rw; PAGE2: load = PAGE2, type = rw; PAGE3: load = PAGE3, type = rw; - LOWCODE: load = RAM, type = ro, optional = yes; + LOWCODE: load = RAM, type = ro, optional = yes; + INIT: load = RAM, type = ro, define = yes, optional = yes; CODE: load = RAM, type = ro; RODATA: load = RAM, type = ro; DATA: load = RAM, type = rw; BSS: load = RAM, type = bss, define = yes; ZEROPAGE: load = ZP, type = zp; - EXTZP: load = ZP, type = rw, define = yes; + 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 4ba070d0f..e4fa0e104 100644 --- a/src/ld65/cfg/cbm610.cfg +++ b/src/ld65/cfg/cbm610.cfg @@ -1,23 +1,24 @@ MEMORY { - BASICHDR: start = $01, size = $50, type = rw, 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; + BASICHDR: start = $0001, size = $0050, type = rw, fill = yes, fillval = 0, file = %O; + ZP: start = $0051, size = $00AD, type = rw, define = yes, fill = yes, fillval = 0, file = %O; + STARTUP: start = $00FE, size = $0102, fill = yes, fillval = 0, file = %O; + PAGE2: start = $0200, size = $0100, fill = yes, fillval = 0, file = %O; + PAGE3: start = $0300, size = $0100, fill = yes, fillval = 0, file = %O; + RAM: start = $0400, size = $FAAE, file = %O; } SEGMENTS { BASICHDR: load = BASICHDR, type = rw; STARTUP: load = STARTUP, type = rw; PAGE2: load = PAGE2, type = rw; PAGE3: load = PAGE3, type = rw; - LOWCODE: load = RAM, type = ro, optional = yes; + LOWCODE: load = RAM, type = ro, optional = yes; + INIT: load = RAM, type = ro, define = yes, optional = yes; CODE: load = RAM, type = ro; RODATA: load = RAM, type = ro; DATA: load = RAM, type = rw; BSS: load = RAM, type = bss, define = yes; ZEROPAGE: load = ZP, type = zp; - EXTZP: load = ZP, type = rw, define = yes; + EXTZP: load = ZP, type = rw, define = yes; } FEATURES { CONDES: segment = RODATA, diff --git a/src/ld65/cfg/geos.cfg b/src/ld65/cfg/geos.cfg index 3bc30d4b4..50065e1e0 100644 --- a/src/ld65/cfg/geos.cfg +++ b/src/ld65/cfg/geos.cfg @@ -1,18 +1,19 @@ MEMORY { - ZP: start = $58, size = $28, type = rw, define = yes; - HEADER: start = $204, size = 508, file = %O; - RAM: start = $400, size = $5C00, define = yes, file = %O; + ZP: start = $0058, size = $0028, type = rw, define = yes; + HEADER: start = $0204, size = $01FC, file = %O; + RAM: start = $0400, size = $5C00, define = yes, file = %O; } SEGMENTS { - HEADER: load = HEADER, type = ro; - STARTUP: load = RAM, type = ro; - LOWCODE: load = RAM, type = ro, optional = yes; - CODE: load = RAM, type = ro; - RODATA: load = RAM, type = ro; - DATA: load = RAM, type = rw; - BSS: load = RAM, type = bss, define = yes; - ZEROPAGE: load = ZP, type = zp; - EXTZP: load = ZP, type = zp; + HEADER: load = HEADER, type = ro; + STARTUP: load = RAM, type = ro; + LOWCODE: load = RAM, type = ro, optional = yes; + INIT: load = RAM, type = ro, define = yes, optional = yes; + CODE: load = RAM, type = ro; + RODATA: load = RAM, type = ro; + DATA: load = RAM, type = rw; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp; + EXTZP: load = ZP, type = zp; } FEATURES { CONDES: segment = RODATA, diff --git a/src/ld65/cfg/lunix.cfg b/src/ld65/cfg/lunix.cfg index b2f1e823f..26c0864e9 100644 --- a/src/ld65/cfg/lunix.cfg +++ b/src/ld65/cfg/lunix.cfg @@ -1,12 +1,13 @@ # ld65 Linker-configuration for LUnix, Next Generation. MEMORY { - ZP: start = $80, size = $40; # userzp buffer - RAM: start = %S, size = $7600; + ZP: start = $0080, size = $0040; # userzp buffer + RAM: start = %S, size = $7600; } SEGMENTS { ZEROPAGE: load = ZP, type = zp, define = yes; # Pseudo-registers STARTUP: load = RAM, type = ro; # First initiation code LOWCODE: load = RAM, type = ro, optional = yes; # Legacy from other platforms + INIT: load = RAM, type = ro, define = yes, optional = yes; CODE: load = RAM, type = ro; # Program RODATA: load = RAM, type = ro; # Literals, constants DATA: load = RAM, type = rw; # Initialized variables diff --git a/src/ld65/cfg/lynx.cfg b/src/ld65/cfg/lynx.cfg index a32ddad7e..27bb5230e 100644 --- a/src/ld65/cfg/lynx.cfg +++ b/src/ld65/cfg/lynx.cfg @@ -1,19 +1,20 @@ MEMORY { - ZP: start = $00, size = $100, type = rw, define = yes; - HEADER: start = $0000, size = $A, file = %O; - RAM: start = $0400, size = $BA3F, define = yes, file = %O; + ZP: start = $0000, size = $0100, type = rw, define = yes; + HEADER: start = $0000, size = $000A, file = %O; + RAM: start = $0400, size = $BA3F, define = yes, file = %O; } SEGMENTS { - EXEHDR: load = HEADER, type = ro; - STARTUP: load = RAM, type = ro; - LOWCODE: load = RAM, type = ro, optional = yes; - CODE: load = RAM, type = ro; - RODATA: load = RAM, type = ro; - DATA: load = RAM, type = rw; - BSS: load = RAM, type = bss, define = yes; - ZEROPAGE: load = ZP, type = zp; - EXTZP: load = ZP, type = zp, optional = yes; - APPZP: load = ZP, type = zp, optional = yes; + EXEHDR: load = HEADER, type = ro; + STARTUP: load = RAM, type = ro; + LOWCODE: load = RAM, type = ro, optional = yes; + INIT: load = RAM, type = ro, define = yes, optional = yes; + CODE: load = RAM, type = ro; + RODATA: load = RAM, type = ro; + DATA: load = RAM, type = rw; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp; + EXTZP: load = ZP, type = zp, optional = yes; + APPZP: load = ZP, type = zp, optional = yes; } FEATURES { CONDES: segment = RODATA, diff --git a/src/ld65/cfg/nes.cfg b/src/ld65/cfg/nes.cfg index b56c6dd04..7d73ce299 100644 --- a/src/ld65/cfg/nes.cfg +++ b/src/ld65/cfg/nes.cfg @@ -34,15 +34,16 @@ MEMORY { SEGMENTS { HEADER: load = HEADER, type = ro; - STARTUP: load = ROM0, type = ro, define = yes; - CODE: load = ROM0, type = ro, define = yes; - RODATA: load = ROM0, type = ro, define = yes; - DATA: load = ROM0, run = RAM, type = rw, define = yes; + STARTUP: load = ROM0, type = ro, define = yes; + LOWCODE: load = ROM0, type = ro, optional = yes; + INIT: load = ROM0, type = ro, define = yes, optional = yes; + CODE: load = ROM0, type = ro, define = yes; + RODATA: load = ROM0, type = ro, define = yes; + DATA: load = ROM0, run = RAM, type = rw, define = yes; VECTORS: load = ROMV, type = rw; CHARS: load = ROM2, type = rw; - BSS: load = RAM, type = bss, define = yes; + BSS: load = RAM, type = bss, define = yes; ZEROPAGE: load = ZP, type = zp; - } FEATURES { diff --git a/src/ld65/cfg/none.cfg b/src/ld65/cfg/none.cfg index e2bd6b355..1e1f70f38 100644 --- a/src/ld65/cfg/none.cfg +++ b/src/ld65/cfg/none.cfg @@ -1,13 +1,15 @@ MEMORY { - ZP: start = $00, size = $1F, type = rw, define = yes; - RAM: start = %S, size = $10000, file = %O; + ZP: start = $0000, size = $0001F, type = rw, define = yes; + RAM: start = %S, size = $10000, file = %O; } SEGMENTS { - CODE: load = RAM, type = rw; - RODATA: load = RAM, type = rw; - DATA: load = RAM, type = rw; - BSS: load = RAM, type = bss, define = yes; - ZEROPAGE: load = ZP, type = zp; + LOWCODE: load = RAM, type = ro, optional = yes; + INIT: load = RAM, type = ro, define = yes, optional = yes; + CODE: load = RAM, type = rw; + RODATA: load = RAM, type = rw; + DATA: load = RAM, type = rw; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = RODATA, diff --git a/src/ld65/cfg/osa65.cfg b/src/ld65/cfg/osa65.cfg index a78353218..3cc138f1f 100644 --- a/src/ld65/cfg/osa65.cfg +++ b/src/ld65/cfg/osa65.cfg @@ -3,10 +3,12 @@ MEMORY { ZEROPAGE: start = $0000, size = $0100, file = %O; } SEGMENTS { - CODE: load = COMBINED, type = ro; - RODATA: load = COMBINED, type = ro; - DATA: load = COMBINED, type = rw, define = yes; - BSS: load = COMBINED, type = bss, define = yes; + LOWCODE: load = COMBINED, type = ro, optional = yes; + INIT: load = COMBINED, type = ro, define = yes, optional = yes; + CODE: load = COMBINED, type = ro; + RODATA: load = COMBINED, type = ro; + DATA: load = COMBINED, type = rw, define = yes; + BSS: load = COMBINED, type = bss, define = yes; ZEROPAGE: load = ZEROPAGE, type = zp; } FEATURES { diff --git a/src/ld65/cfg/pet.cfg b/src/ld65/cfg/pet.cfg index d731c9573..8d78cf5d1 100644 --- a/src/ld65/cfg/pet.cfg +++ b/src/ld65/cfg/pet.cfg @@ -1,15 +1,16 @@ MEMORY { - ZP: start = $55, size = $1A, type = rw, define = yes; + ZP: start = $0055, size = $001A, type = rw, define = yes; RAM: start = $03FF, size = $7BFF, file = %O; } SEGMENTS { - STARTUP: load = RAM, type = ro; - LOWCODE: load = RAM, type = ro, optional = yes; - CODE: load = RAM, type = ro; - RODATA: load = RAM, type = ro; - DATA: load = RAM, type = rw; - BSS: load = RAM, type = bss, define = yes; - ZEROPAGE: load = ZP, type = zp; + STARTUP: load = RAM, type = ro; + LOWCODE: load = RAM, type = ro, optional = yes; + INIT: load = RAM, type = ro, define = yes, optional = yes; + CODE: load = RAM, type = ro; + RODATA: load = RAM, type = ro; + DATA: load = RAM, type = rw; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = RODATA, diff --git a/src/ld65/cfg/plus4.cfg b/src/ld65/cfg/plus4.cfg index d2089f78c..76fff927e 100644 --- a/src/ld65/cfg/plus4.cfg +++ b/src/ld65/cfg/plus4.cfg @@ -1,15 +1,16 @@ MEMORY { - ZP: start = $02, size = $1A, type = rw, define = yes; - RAM: start = $0fff, size = $ED01, file = %O; + ZP: start = $0002, size = $001A, type = rw, define = yes; + RAM: start = $0FFF, size = $ED01, file = %O; } SEGMENTS { - STARTUP: load = RAM, type = ro; - LOWCODE: load = RAM, type = ro, optional = yes; - CODE: load = RAM, type = ro; - RODATA: load = RAM, type = ro; - DATA: load = RAM, type = rw; - BSS: load = RAM, type = bss, define = yes; - ZEROPAGE: load = ZP, type = zp; + STARTUP: load = RAM, type = ro; + LOWCODE: load = RAM, type = ro, optional = yes; + INIT: load = RAM, type = ro, define = yes, optional = yes; + CODE: load = RAM, type = ro; + RODATA: load = RAM, type = ro; + DATA: load = RAM, type = rw; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = RODATA, diff --git a/src/ld65/cfg/supervision.cfg b/src/ld65/cfg/supervision.cfg index c7f0d8395..054f7a4ed 100644 --- a/src/ld65/cfg/supervision.cfg +++ b/src/ld65/cfg/supervision.cfg @@ -3,21 +3,23 @@ # or reset from code >0xc000 and switch bank to the 3rd bank MEMORY { - ZP: start = $0000, size = $100; - CPUSTACK: start = $0100, size =$100; - RAM: start = $0200, size = $1e00, define = yes; - VRAM: start = $4000, size = $2000; - ROM: start = $8000, size = $8000, fill = yes, fillval = $ff, file = %O, define = yes; + ZP: start = $0000, size = $0100; + CPUSTACK: start = $0100, size = $0100; + RAM: start = $0200, size = $1E00, define = yes; + VRAM: start = $4000, size = $2000; + ROM: start = $8000, size = $8000, fill = yes, fillval = $ff, file = %O, define = yes; } SEGMENTS { - CODE: load = ROM, type = ro, define=yes; - RODATA: load = ROM, type = ro, define=yes; - DATA: load = ROM, run=RAM, type = rw, define = yes; - FFF0: load = ROM, type = ro, offset = $7FF0; - VECTOR: load = ROM, type = ro, offset = $7FFA; - BSS: load = RAM, type = bss, define = yes; - ZEROPAGE: load = ZP, type = zp, define = yes; + LOWCODE: load = ROM, type = ro, optional = yes; + INIT: load = ROM, type = ro, define = yes, optional = yes; + CODE: load = ROM, type = ro, define = yes; + RODATA: load = ROM, type = ro, define = yes; + DATA: load = ROM, run = RAM, type = rw, define = yes; + FFF0: load = ROM, type = ro, offset = $7FF0; + VECTOR: load = ROM, type = ro, offset = $7FFA; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp, define = yes; } FEATURES { diff --git a/src/ld65/cfg/supervision128.cfg b/src/ld65/cfg/supervision128.cfg index 911505132..f22aacdaa 100644 --- a/src/ld65/cfg/supervision128.cfg +++ b/src/ld65/cfg/supervision128.cfg @@ -5,29 +5,31 @@ # ld65 --config supervision.cfg -o .bin .o MEMORY { - RAM: start = $0000, size = $2000; - VRAM: start = $4000, size = $2000; - BANKROM1: start = $8000, size = $4000, fill = yes, fillval=$ff, file=%O; - BANKROM2: start = $8000, size = $4000, fill = yes, fillval=$ff, file=%O; - BANKROM3: start = $8000, size = $4000, fill = yes, fillval=$ff, file=%O; - BANKROM4: start = $8000, size = $4000, fill = yes, fillval=$ff, file=%O; - BANKROM5: start = $8000, size = $4000, fill = yes, fillval=$ff, file=%O; - BANKROM6: start = $8000, size = $4000, fill = yes, fillval=$ff, file=%O; - BANKROM7: start = $8000, size = $4000, fill = yes, fillval=$ff, file=%O; - ROM: start = $c000, size = $4000, fill = yes, fillval = $ff, file=%O; + RAM: start = $0000, size = $2000; + VRAM: start = $4000, size = $2000; + BANKROM1: start = $8000, size = $4000, fill = yes, fillval = $FF, file = %O; + BANKROM2: start = $8000, size = $4000, fill = yes, fillval = $FF, file = %O; + BANKROM3: start = $8000, size = $4000, fill = yes, fillval = $FF, file = %O; + BANKROM4: start = $8000, size = $4000, fill = yes, fillval = $FF, file = %O; + BANKROM5: start = $8000, size = $4000, fill = yes, fillval = $FF, file = %O; + BANKROM6: start = $8000, size = $4000, fill = yes, fillval = $FF, file = %O; + BANKROM7: start = $8000, size = $4000, fill = yes, fillval = $FF, file = %O; + ROM: start = $c000, size = $4000, fill = yes, fillval = $FF, file = %O; } SEGMENTS { - CODE: load = ROM, type = ro; - BANK1: load = BANKROM1, type = ro; - BANK2: load = BANKROM2, type = ro; - BANK3: load = BANKROM3, type = ro; - BANK4: load = BANKROM4, type = ro; - BANK5: load = BANKROM5, type = ro; - BANK6: load = BANKROM6, type = ro; - BANK7: load = BANKROM7, type = ro; - ZEROPAGE: load = RAM, type = bss, define = yes; - DATA: load = RAM, type = bss, offset= $200, define = yes; - BSS: load = RAM, type = bss, define = yes; - VECTOR: load = ROM, type = ro, offset = $3FFA; + LOWCODE: load = ROM, type = ro, optional = yes; + INIT: load = ROM, type = ro, define = yes, optional = yes; + CODE: load = ROM, type = ro; + BANK1: load = BANKROM1, type = ro; + BANK2: load = BANKROM2, type = ro; + BANK3: load = BANKROM3, type = ro; + BANK4: load = BANKROM4, type = ro; + BANK5: load = BANKROM5, type = ro; + BANK6: load = BANKROM6, type = ro; + BANK7: load = BANKROM7, type = ro; + ZEROPAGE: load = RAM, type = bss, define = yes; + DATA: load = RAM, type = bss, offset = $0200, define = yes; + BSS: load = RAM, type = bss, define = yes; + VECTOR: load = ROM, type = ro, offset = $3FFA; } diff --git a/src/ld65/cfg/supervision16.cfg b/src/ld65/cfg/supervision16.cfg index a80f615ce..4e5cd2b6b 100644 --- a/src/ld65/cfg/supervision16.cfg +++ b/src/ld65/cfg/supervision16.cfg @@ -3,21 +3,23 @@ # ld65 config file # ld65 --config supervision16.cfg -o .bin .o MEMORY { - ZP: start = $0000, size = $100; - CPUSTACK: start = $0100, size =$100; - RAM: start = $0200, size = $1e00; - VRAM: start = $4000, size = $2000; - ROM: start = $c000, size = $4000, fill = yes, fillval = $ff, file=%O, define=yes; + ZP: start = $0000, size = $0100; + CPUSTACK: start = $0100, size = $0100; + RAM: start = $0200, size = $1E00; + VRAM: start = $4000, size = $2000; + ROM: start = $C000, size = $4000, fill = yes, fillval = $ff, file=%O, define=yes; } SEGMENTS { - CODE: load = ROM, type = ro, define=yes; - RODATA: load = ROM, type = ro, define=yes; - DATA: load = ROM, run=RAM, type = rw, define = yes; - FFF0: load = ROM, type =ro, offset = $3ff0; - VECTOR: load = ROM, type = ro, offset = $3FFA; - ZEROPAGE: load = ZP, type = zp, define = yes; - BSS: load = RAM, type = bss, define = yes; + LOWCODE: load = ROM, type = ro, optional = yes; + INIT: load = ROM, type = ro, define = yes, optional = yes; + CODE: load = ROM, type = ro, define = yes; + RODATA: load = ROM, type = ro, define = yes; + DATA: load = ROM, run = RAM, type = rw, define = yes; + FFF0: load = ROM, type = ro, offset = $3FF0; + VECTOR: load = ROM, type = ro, offset = $3FFA; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp, define = yes; } FEATURES { CONDES: segment = RODATA, diff --git a/src/ld65/cfg/supervision64.cfg b/src/ld65/cfg/supervision64.cfg index 66c146a0b..3628ad969 100644 --- a/src/ld65/cfg/supervision64.cfg +++ b/src/ld65/cfg/supervision64.cfg @@ -5,22 +5,24 @@ # ld65 --config supervision.cfg -o .bin .o MEMORY { - RAM: start = $0000, size = $2000; - VRAM: start = $4000, size = $2000; - BANKROM1: start = $8000, size = $4000, fill = yes, fillval=$ff, file=%O; - BANKROM2: start = $8000, size = $4000, fill = yes, fillval=$ff, file=%O; - BANKROM3: start = $8000, size = $4000, fill = yes, fillval=$ff, file=%O; - ROM: start = $c000, size = $4000, fill = yes, fillval = $ff, file=%O; + RAM: start = $0000, size = $2000; + VRAM: start = $4000, size = $2000; + BANKROM1: start = $8000, size = $4000, fill = yes, fillval = $FF, file = %O; + BANKROM2: start = $8000, size = $4000, fill = yes, fillval = $FF, file = %O; + BANKROM3: start = $8000, size = $4000, fill = yes, fillval = $FF, file = %O; + ROM: start = $C000, size = $4000, fill = yes, fillval = $FF, file = %O; } SEGMENTS { - CODE: load = ROM, type = ro; - RODATA: load = ROM, type = ro; - BANK1: load = BANKROM1, type = ro; - BANK2: load = BANKROM2, type = ro; - BANK3: load = BANKROM3, type = ro; - ZEROPAGE: load = RAM, type = bss, define = yes; - DATA: load = RAM, type = bss, offset= $200, define = yes; - BSS: load = RAM, type = bss, define = yes; - VECTOR: load = ROM, type = ro, offset = $3FFA; + LOWCODE: load = ROM, type = ro, optional = yes; + INIT: load = ROM, type = ro, define = yes, optional = yes; + CODE: load = ROM, type = ro; + RODATA: load = ROM, type = ro; + BANK1: load = BANKROM1, type = ro; + BANK2: load = BANKROM2, type = ro; + BANK3: load = BANKROM3, type = ro; + ZEROPAGE: load = RAM, type = bss, define = yes; + DATA: load = RAM, type = bss, offset = $0200, define = yes; + BSS: load = RAM, type = bss, define = yes; + VECTOR: load = ROM, type = ro, offset = $3FFA; } diff --git a/src/ld65/cfg/vic20.cfg b/src/ld65/cfg/vic20.cfg index 1dd9845da..a4e9713e9 100644 --- a/src/ld65/cfg/vic20.cfg +++ b/src/ld65/cfg/vic20.cfg @@ -1,15 +1,16 @@ MEMORY { - ZP: start = $02, size = $1A, type = rw, define = yes; - RAM: start = $FFF, size = $0E01, define = yes, file = %O; + ZP: start = $0002, size = $001A, type = rw, define = yes; + RAM: start = $0FFF, size = $0E01, define = yes, file = %O; } SEGMENTS { - STARTUP: load = RAM , type = ro; - LOWCODE: load = RAM, type = ro, optional = yes; - CODE: load = RAM, type = ro; - RODATA: load = RAM, type = ro; - DATA: load = RAM, type = rw; - BSS: load = RAM, type = bss, define = yes; - ZEROPAGE: load = ZP, type = zp; + STARTUP: load = RAM, type = ro; + LOWCODE: load = RAM, type = ro, optional = yes; + INIT: load = RAM, type = ro, define = yes, optional = yes; + CODE: load = RAM, type = ro; + RODATA: load = RAM, type = ro; + DATA: load = RAM, type = rw; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = RODATA,