From: ol.sc Date: Sun, 17 Jan 2010 21:47:03 +0000 (+0000) Subject: Define HEADER memory area for the EXEHDR segment for consistency reasons with the... X-Git-Tag: V2.13.2~49 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3d5d3ef76af9d10f43cd9ff4a47e624757237e0d;p=cc65 Define HEADER memory area for the EXEHDR segment for consistency reasons with the other targets with an EXEHDR segment (apple2[enh], atari, lynx, cbm[5|6]10). git-svn-id: svn://svn.cc65.org/cc65/trunk@4550 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ld65/cfg/c128.cfg b/src/ld65/cfg/c128.cfg index 019e8ea7b..71c11cffd 100644 --- a/src/ld65/cfg/c128.cfg +++ b/src/ld65/cfg/c128.cfg @@ -1,19 +1,20 @@ MEMORY { - ZP: start = $0002, size = $001A, type = rw, define = yes; - RAM: start = $1BFF, size = $A401, file = %O, define = yes; + ZP: start = $0002, size = $001A, type = rw, define = yes; + HEADER: start = $1BFF, size = $000E, file = %O; + RAM: start = $1C0D, size = $A3F3, file = %O, define = yes; } SEGMENTS { - EXEHDR: load = RAM, 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; - ZPSAVE: load = RAM, type = bss; - BSS: load = RAM, type = bss, define = yes; - HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack - ZEROPAGE: load = ZP, type = zp; + 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; + ZPSAVE: load = RAM, type = bss; + BSS: load = RAM, type = bss, define = yes; + HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack + ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = INIT, diff --git a/src/ld65/cfg/c16.cfg b/src/ld65/cfg/c16.cfg index cb01599e5..d2700fa37 100644 --- a/src/ld65/cfg/c16.cfg +++ b/src/ld65/cfg/c16.cfg @@ -1,19 +1,20 @@ MEMORY { - ZP: start = $0002, size = $001A, type = rw, define = yes; - RAM: start = $0FFF, size = $7001, file = %O; + ZP: start = $0002, size = $001A, type = rw, define = yes; + HEADER: start = $0FFF, size = $000E, file = %O; + RAM: start = $100D, size = $6FF3, file = %O; } SEGMENTS { - EXEHDR: load = RAM, 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; - ZPSAVE: load = RAM, type = bss; - BSS: load = RAM, type = bss, define = yes; - HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack - ZEROPAGE: load = ZP, type = zp; + 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; + ZPSAVE: load = RAM, type = bss; + BSS: load = RAM, type = bss, define = yes; + HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack + ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = INIT, diff --git a/src/ld65/cfg/c64.cfg b/src/ld65/cfg/c64.cfg index 91809c1ff..2ce94b6fe 100644 --- a/src/ld65/cfg/c64.cfg +++ b/src/ld65/cfg/c64.cfg @@ -1,19 +1,20 @@ MEMORY { - ZP: start = $0002, size = $001A, type = rw, define = yes; - RAM: start = $07FF, size = $C801, file = %O, define = yes; + ZP: start = $0002, size = $001A, type = rw, define = yes; + HEADER: start = $07FF, size = $000E, file = %O; + RAM: start = $080D, size = $C7F3, file = %O, define = yes; } SEGMENTS { - EXEHDR: load = RAM, 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; - ZPSAVE: load = RAM, type = bss; - BSS: load = RAM, type = bss, define = yes; - HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack - ZEROPAGE: load = ZP, type = zp; + 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; + ZPSAVE: load = RAM, type = bss; + BSS: load = RAM, type = bss, define = yes; + HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack + ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = INIT, diff --git a/src/ld65/cfg/pet.cfg b/src/ld65/cfg/pet.cfg index f95eb42c3..04fa26240 100644 --- a/src/ld65/cfg/pet.cfg +++ b/src/ld65/cfg/pet.cfg @@ -1,19 +1,20 @@ MEMORY { - ZP: start = $0055, size = $001A, type = rw, define = yes; - RAM: start = $03FF, size = $7BFF, file = %O; + ZP: start = $0055, size = $001A, type = rw, define = yes; + HEADER: start = $03FF, size = $000E, file = %O; + RAM: start = $040D, size = $7BF1, file = %O; } SEGMENTS { - EXEHDR: load = RAM, 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; - ZPSAVE: load = RAM, type = bss; - BSS: load = RAM, type = bss, define = yes; - HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack - ZEROPAGE: load = ZP, type = zp; + 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; + ZPSAVE: load = RAM, type = bss; + BSS: load = RAM, type = bss, define = yes; + HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack + ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = INIT, diff --git a/src/ld65/cfg/plus4.cfg b/src/ld65/cfg/plus4.cfg index 2b5a31457..4b098cc79 100644 --- a/src/ld65/cfg/plus4.cfg +++ b/src/ld65/cfg/plus4.cfg @@ -1,19 +1,20 @@ MEMORY { - ZP: start = $0002, size = $001A, type = rw, define = yes; - RAM: start = $0FFF, size = $ED01, file = %O; + ZP: start = $0002, size = $001A, type = rw, define = yes; + HEADER: start = $0FFF, size = $000E, file = %O; + RAM: start = $100D, size = $ECF3, file = %O; } SEGMENTS { - EXEHDR: load = RAM, 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; - ZPSAVE: load = RAM, type = bss; - BSS: load = RAM, type = bss, define = yes; - HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack - ZEROPAGE: load = ZP, type = zp; + 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; + ZPSAVE: load = RAM, type = bss; + BSS: load = RAM, type = bss, define = yes; + HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack + ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = INIT, diff --git a/src/ld65/cfg/vic20-32k.cfg b/src/ld65/cfg/vic20-32k.cfg index aa333c4dc..666cd15ea 100644 --- a/src/ld65/cfg/vic20-32k.cfg +++ b/src/ld65/cfg/vic20-32k.cfg @@ -1,21 +1,22 @@ # Memory configuration for the VIC-20 with 32K RAM Cartridge # Contributed by Stefan Haubenthal MEMORY { - ZP: start = $0002, size = $001A, type = rw, define = yes; - RAM: start = $11FF, size = $6E01, define = yes, file = %O; + ZP: start = $0002, size = $001A, type = rw, define = yes; + HEADER: start = $11FF, size = $000E, file = %O; + RAM: start = $120D, size = $6DF3, file = %O, define = yes; } SEGMENTS { - EXEHDR: load = RAM, 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; - ZPSAVE: load = RAM, type = bss; - BSS: load = RAM, type = bss, define = yes; - HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack - ZEROPAGE: load = ZP, type = zp; + 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; + ZPSAVE: load = RAM, type = bss; + BSS: load = RAM, type = bss, define = yes; + HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack + ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = INIT, diff --git a/src/ld65/cfg/vic20.cfg b/src/ld65/cfg/vic20.cfg index 6ab066aa3..03eba699d 100644 --- a/src/ld65/cfg/vic20.cfg +++ b/src/ld65/cfg/vic20.cfg @@ -1,19 +1,20 @@ MEMORY { - ZP: start = $0002, size = $001A, type = rw, define = yes; - RAM: start = $0FFF, size = $0E01, define = yes, file = %O; + ZP: start = $0002, size = $001A, type = rw, define = yes; + HEADER: start = $0FFF, size = $000E, file = %O; + RAM: start = $100D, size = $0DF3, file = %O, define = yes; } SEGMENTS { - EXEHDR: load = RAM, 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; - ZPSAVE: load = RAM, type = bss; - BSS: load = RAM, type = bss, define = yes; - HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack - ZEROPAGE: load = ZP, type = zp; + 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; + ZPSAVE: load = RAM, type = bss; + BSS: load = RAM, type = bss, define = yes; + HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack + ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = INIT,