From c797be4767d1f834d9023c293c12088865c73fba Mon Sep 17 00:00:00 2001 From: uz Date: Fri, 12 Nov 2010 19:59:02 +0000 Subject: [PATCH] Add an additional file = "" to memory areas that contain only bss or zp type segments and aren't written to the output file. Before that, the "not going to output file" was implicit because of the bss type of the segments contained. The new attribute makes this explicit. git-svn-id: svn://svn.cc65.org/cc65/trunk@4853 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ld65/cfg/apple2-dos33.cfg | 2 +- src/ld65/cfg/apple2-loader.cfg | 2 +- src/ld65/cfg/apple2-reboot.cfg | 2 +- src/ld65/cfg/apple2-system.cfg | 2 +- src/ld65/cfg/apple2.cfg | 2 +- src/ld65/cfg/apple2enh-dos33.cfg | 2 +- src/ld65/cfg/apple2enh-loader.cfg | 2 +- src/ld65/cfg/apple2enh-reboot.cfg | 2 +- src/ld65/cfg/apple2enh-system.cfg | 2 +- src/ld65/cfg/apple2enh.cfg | 2 +- src/ld65/cfg/atari.cfg | 8 ++++---- src/ld65/cfg/atmos.cfg | 2 +- src/ld65/cfg/bbc.cfg | 4 ++-- src/ld65/cfg/c128.cfg | 4 ++-- src/ld65/cfg/c16.cfg | 6 +++--- src/ld65/cfg/c64.cfg | 2 +- src/ld65/cfg/geos.cfg | 2 +- src/ld65/cfg/lynx.cfg | 2 +- src/ld65/cfg/module.cfg | 4 ++-- src/ld65/cfg/nes.cfg | 14 +++++++------- src/ld65/cfg/none.cfg | 4 ++-- src/ld65/cfg/pet.cfg | 6 +++--- src/ld65/cfg/plus4.cfg | 6 +++--- src/ld65/cfg/supervision-128k.cfg | 20 ++++++++++---------- src/ld65/cfg/supervision-16k.cfg | 10 +++++----- src/ld65/cfg/supervision-64k.cfg | 12 ++++++------ src/ld65/cfg/supervision.cfg | 10 +++++----- src/ld65/cfg/vic20-32k.cfg | 2 +- src/ld65/cfg/vic20.cfg | 2 +- 29 files changed, 70 insertions(+), 70 deletions(-) diff --git a/src/ld65/cfg/apple2-dos33.cfg b/src/ld65/cfg/apple2-dos33.cfg index 3e9234afc..a8155e492 100644 --- a/src/ld65/cfg/apple2-dos33.cfg +++ b/src/ld65/cfg/apple2-dos33.cfg @@ -7,7 +7,7 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $0080, size = $001A; + ZP: file = "", define = yes, start = $0080, size = $001A; HEADER: file = %O, start = $0000, size = $0004; RAM: file = %O, define = yes, start = %S, size = $9600 - __STACKSIZE__ - %S; MOVE: file = %O, define = yes, start = $0000, size = $FFFF; diff --git a/src/ld65/cfg/apple2-loader.cfg b/src/ld65/cfg/apple2-loader.cfg index 3dd3ecbba..c1eb81fd4 100644 --- a/src/ld65/cfg/apple2-loader.cfg +++ b/src/ld65/cfg/apple2-loader.cfg @@ -7,7 +7,7 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $0080, size = $001A; + ZP: file = "", define = yes, start = $0080, size = $001A; HEADER: file = %O, start = $0000, size = $0004; RAM: file = %O, define = yes, start = %S, size = $BF00 - __STACKSIZE__ - %S; MOVE: file = %O, define = yes, start = $0000, size = $FFFF; diff --git a/src/ld65/cfg/apple2-reboot.cfg b/src/ld65/cfg/apple2-reboot.cfg index 9e1e835cf..e24eff04a 100644 --- a/src/ld65/cfg/apple2-reboot.cfg +++ b/src/ld65/cfg/apple2-reboot.cfg @@ -8,7 +8,7 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $0080, size = $001A; + ZP: file = "", define = yes, start = $0080, size = $001A; HEADER: file = %O, start = $0000, size = $0004; RAM: file = %O, define = yes, start = %S, size = $BF00 - __STACKSIZE__ - %S; MOVE: file = %O, define = yes, start = $0000, size = $FFFF; diff --git a/src/ld65/cfg/apple2-system.cfg b/src/ld65/cfg/apple2-system.cfg index 0a4bcf705..f888f3bcb 100644 --- a/src/ld65/cfg/apple2-system.cfg +++ b/src/ld65/cfg/apple2-system.cfg @@ -4,7 +4,7 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $0080, size = $001A; + ZP: file = "", define = yes, start = $0080, size = $001A; HEADER: file = "", start = $0000, size = $0004; RAM: file = %O, define = yes, start = $2000, size = $9F00 - __STACKSIZE__; MOVE: file = %O, define = yes, start = $0000, size = $FFFF; diff --git a/src/ld65/cfg/apple2.cfg b/src/ld65/cfg/apple2.cfg index fc96da9af..64a1b4f63 100644 --- a/src/ld65/cfg/apple2.cfg +++ b/src/ld65/cfg/apple2.cfg @@ -7,7 +7,7 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $0080, size = $001A; + ZP: file = "", define = yes, start = $0080, size = $001A; HEADER: file = %O, start = $0000, size = $0004; RAM: file = %O, define = yes, start = %S, size = $9600 - __STACKSIZE__ - %S; MOVE: file = %O, define = yes, start = $0000, size = $FFFF; diff --git a/src/ld65/cfg/apple2enh-dos33.cfg b/src/ld65/cfg/apple2enh-dos33.cfg index 3e9234afc..a8155e492 100644 --- a/src/ld65/cfg/apple2enh-dos33.cfg +++ b/src/ld65/cfg/apple2enh-dos33.cfg @@ -7,7 +7,7 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $0080, size = $001A; + ZP: file = "", define = yes, start = $0080, size = $001A; HEADER: file = %O, start = $0000, size = $0004; RAM: file = %O, define = yes, start = %S, size = $9600 - __STACKSIZE__ - %S; MOVE: file = %O, define = yes, start = $0000, size = $FFFF; diff --git a/src/ld65/cfg/apple2enh-loader.cfg b/src/ld65/cfg/apple2enh-loader.cfg index 3dd3ecbba..c1eb81fd4 100644 --- a/src/ld65/cfg/apple2enh-loader.cfg +++ b/src/ld65/cfg/apple2enh-loader.cfg @@ -7,7 +7,7 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $0080, size = $001A; + ZP: file = "", define = yes, start = $0080, size = $001A; HEADER: file = %O, start = $0000, size = $0004; RAM: file = %O, define = yes, start = %S, size = $BF00 - __STACKSIZE__ - %S; MOVE: file = %O, define = yes, start = $0000, size = $FFFF; diff --git a/src/ld65/cfg/apple2enh-reboot.cfg b/src/ld65/cfg/apple2enh-reboot.cfg index 9e1e835cf..e24eff04a 100644 --- a/src/ld65/cfg/apple2enh-reboot.cfg +++ b/src/ld65/cfg/apple2enh-reboot.cfg @@ -8,7 +8,7 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $0080, size = $001A; + ZP: file = "", define = yes, start = $0080, size = $001A; HEADER: file = %O, start = $0000, size = $0004; RAM: file = %O, define = yes, start = %S, size = $BF00 - __STACKSIZE__ - %S; MOVE: file = %O, define = yes, start = $0000, size = $FFFF; diff --git a/src/ld65/cfg/apple2enh-system.cfg b/src/ld65/cfg/apple2enh-system.cfg index 0a4bcf705..f888f3bcb 100644 --- a/src/ld65/cfg/apple2enh-system.cfg +++ b/src/ld65/cfg/apple2enh-system.cfg @@ -4,7 +4,7 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $0080, size = $001A; + ZP: file = "", define = yes, start = $0080, size = $001A; HEADER: file = "", start = $0000, size = $0004; RAM: file = %O, define = yes, start = $2000, size = $9F00 - __STACKSIZE__; MOVE: file = %O, define = yes, start = $0000, size = $FFFF; diff --git a/src/ld65/cfg/apple2enh.cfg b/src/ld65/cfg/apple2enh.cfg index fc96da9af..64a1b4f63 100644 --- a/src/ld65/cfg/apple2enh.cfg +++ b/src/ld65/cfg/apple2enh.cfg @@ -7,7 +7,7 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $0080, size = $001A; + ZP: file = "", define = yes, start = $0080, size = $001A; HEADER: file = %O, start = $0000, size = $0004; RAM: file = %O, define = yes, start = %S, size = $9600 - __STACKSIZE__ - %S; MOVE: file = %O, define = yes, start = $0000, size = $FFFF; diff --git a/src/ld65/cfg/atari.cfg b/src/ld65/cfg/atari.cfg index 437ce1681..fcfc9a761 100644 --- a/src/ld65/cfg/atari.cfg +++ b/src/ld65/cfg/atari.cfg @@ -6,10 +6,10 @@ SYMBOLS { __RESERVED_MEMORY__: type = weak, value = $0000; } MEMORY { - ZP: define = yes, start = $0082, size = $007E; - HEADER: file = %O, start = $0000, size = $0006; - RAM: file = %O, start = %S, size = $BC20 - __STACKSIZE__ - %S; - TRAILER: file = %O, start = $0000, size = $0006; + ZP: file = "", define = yes, start = $0082, size = $007E; + HEADER: file = %O, start = $0000, size = $0006; + RAM: file = %O, start = %S, size = $BC20 - __STACKSIZE__ - %S; + TRAILER: file = %O, start = $0000, size = $0006; } SEGMENTS { EXEHDR: load = HEADER, type = ro; diff --git a/src/ld65/cfg/atmos.cfg b/src/ld65/cfg/atmos.cfg index 1ea3b76ff..b0aa899f3 100644 --- a/src/ld65/cfg/atmos.cfg +++ b/src/ld65/cfg/atmos.cfg @@ -2,7 +2,7 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $00E2, size = $001A; + ZP: file = "", define = yes, start = $00E2, size = $001A; TAPEHDR: file = %O, type = ro, start = $0000, size = $000E; RAM: file = %O, define = yes, start = $0500, size = $9300 - __STACKSIZE__; } diff --git a/src/ld65/cfg/bbc.cfg b/src/ld65/cfg/bbc.cfg index d614bc46b..d9b8b6732 100644 --- a/src/ld65/cfg/bbc.cfg +++ b/src/ld65/cfg/bbc.cfg @@ -2,8 +2,8 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $0070, size = $0020; - RAM: file = %O, start = $0E00, size = $7200 - __STACKSIZE__; + ZP: file = "", define = yes, start = $0070, size = $0020; + RAM: file = %O, start = $0E00, size = $7200 - __STACKSIZE__; } SEGMENTS { STARTUP: load = RAM, type = ro, define = yes; diff --git a/src/ld65/cfg/c128.cfg b/src/ld65/cfg/c128.cfg index e5e14fc94..9dfedf999 100644 --- a/src/ld65/cfg/c128.cfg +++ b/src/ld65/cfg/c128.cfg @@ -1,8 +1,8 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack -} +} MEMORY { - ZP: define = yes, start = $0002, size = $001A; + ZP: file = "", define = yes, start = $0002, size = $001A; HEADER: file = %O, start = $1BFF, size = $000E; RAM: file = %O, define = yes, start = $1C0D, size = $A3F3 - __STACKSIZE__; } diff --git a/src/ld65/cfg/c16.cfg b/src/ld65/cfg/c16.cfg index 112ccdd9c..a015f11fb 100644 --- a/src/ld65/cfg/c16.cfg +++ b/src/ld65/cfg/c16.cfg @@ -2,9 +2,9 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $0002, size = $001A; - HEADER: file = %O, start = $0FFF, size = $000E; - RAM: file = %O, start = $100D, size = $6FF3 - __STACKSIZE__; + ZP: file = "", define = yes, start = $0002, size = $001A; + HEADER: file = %O, start = $0FFF, size = $000E; + RAM: file = %O, start = $100D, size = $6FF3 - __STACKSIZE__; } SEGMENTS { EXEHDR: load = HEADER, type = ro; diff --git a/src/ld65/cfg/c64.cfg b/src/ld65/cfg/c64.cfg index a232d479c..3eabf2e3d 100644 --- a/src/ld65/cfg/c64.cfg +++ b/src/ld65/cfg/c64.cfg @@ -2,7 +2,7 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $0002, size = $001A; + ZP: file = "", define = yes, start = $0002, size = $001A; HEADER: file = %O, start = $07FF, size = $000E; RAM: file = %O, define = yes, start = $080D, size = $C7F3 - __STACKSIZE__; } diff --git a/src/ld65/cfg/geos.cfg b/src/ld65/cfg/geos.cfg index b6e94e144..7c71059ab 100644 --- a/src/ld65/cfg/geos.cfg +++ b/src/ld65/cfg/geos.cfg @@ -2,7 +2,7 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0400; # 1k stack } MEMORY { - ZP: define = yes, start = $0058, size = $0028; + ZP: file = "", define = yes, start = $0058, size = $0028; HEADER: file = %O, start = $0204, size = $01FC; RAM: file = %O, define = yes, start = $0400, size = $5C00 - __STACKSIZE__; } diff --git a/src/ld65/cfg/lynx.cfg b/src/ld65/cfg/lynx.cfg index 819487a51..dd1fe5b40 100644 --- a/src/ld65/cfg/lynx.cfg +++ b/src/ld65/cfg/lynx.cfg @@ -2,7 +2,7 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $0000, size = $0100; + ZP: file = "", define = yes, start = $0000, size = $0100; HEADER: file = %O, start = $0000, size = $000A; RAM: file = %O, define = yes, start = $0400, size = $BC38 - __STACKSIZE__; } diff --git a/src/ld65/cfg/module.cfg b/src/ld65/cfg/module.cfg index 72db8c79b..7d30d0e37 100644 --- a/src/ld65/cfg/module.cfg +++ b/src/ld65/cfg/module.cfg @@ -1,6 +1,6 @@ MEMORY { - ZP: start = $0000, size = $0100, type = rw, define = yes; - COMBINED: start = $0000, size = $FFFF, file = %O; + ZP: file = "", start = $0000, size = $0100, type = rw, define = yes; + COMBINED: file = %O, start = $0000, size = $FFFF; } SEGMENTS { JUMPTABLE: load = COMBINED, type = ro; diff --git a/src/ld65/cfg/nes.cfg b/src/ld65/cfg/nes.cfg index 42d703e75..43d213452 100644 --- a/src/ld65/cfg/nes.cfg +++ b/src/ld65/cfg/nes.cfg @@ -2,35 +2,35 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0300; # 3 pages stack } MEMORY { - ZP: start = $0002, size = $001A, type = rw, define = yes; + ZP: file = "", start = $0002, size = $001A, type = rw, define = yes; # INES Cartridge Header - HEADER: start = $0000, size = $0010, file = %O, fill = yes; + HEADER: file = %O, start = $0000, size = $0010, fill = yes; # 2 16K ROM Banks # - startup # - code # - rodata # - data (load) - ROM0: start = $8000, size = $7FF4, file = %O, fill = yes, define = yes; + ROM0: file = %O, start = $8000, size = $7FF4, fill = yes, define = yes; # Hardware Vectors at End of 2nd 8K ROM - ROMV: start = $FFF6, size = $000C, file = %O, fill = yes; + ROMV: file = %O, start = $FFF6, size = $000C, fill = yes; # 1 8k CHR Bank - ROM2: start = $0000, size = $2000, file = %O, fill = yes; + ROM2: file = %O, start = $0000, size = $2000, fill = yes; # standard 2k SRAM (-zeropage) # $0100-$0200 cpu stack # $0200-$0500 3 pages for ppu memory write buffer # $0500-$0800 3 pages for cc65 parameter stack - SRAM: start = $0500, size = __STACKSIZE__, define = yes; + SRAM: file = "", start = $0500, size = __STACKSIZE__, define = yes; # additional 8K SRAM Bank # - data (run) # - bss # - heap - RAM: start = $6000, size = $2000, define = yes; + RAM: file = "", start = $6000, size = $2000, define = yes; } SEGMENTS { HEADER: load = HEADER, type = ro; diff --git a/src/ld65/cfg/none.cfg b/src/ld65/cfg/none.cfg index 54997d823..8821bd05f 100644 --- a/src/ld65/cfg/none.cfg +++ b/src/ld65/cfg/none.cfg @@ -2,8 +2,8 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $0000, size = $0001F; - RAM: file = %O, start = %S, size = $10000 - __STACKSIZE__; + ZP: file = "", define = yes, start = $0000, size = $0001F; + RAM: file = %O, start = %S, size = $10000 - __STACKSIZE__; } SEGMENTS { LOWCODE: load = RAM, type = ro, optional = yes; diff --git a/src/ld65/cfg/pet.cfg b/src/ld65/cfg/pet.cfg index 2cbd7e66d..055283653 100644 --- a/src/ld65/cfg/pet.cfg +++ b/src/ld65/cfg/pet.cfg @@ -2,9 +2,9 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $0055, size = $001A; - HEADER: file = %O, start = $03FF, size = $000E; - RAM: file = %O, start = $040D, size = $7BF3 - __STACKSIZE__; + ZP: file = "", define = yes, start = $0055, size = $001A; + HEADER: file = %O, start = $03FF, size = $000E; + RAM: file = %O, start = $040D, size = $7BF3 - __STACKSIZE__; } SEGMENTS { EXEHDR: load = HEADER, type = ro; diff --git a/src/ld65/cfg/plus4.cfg b/src/ld65/cfg/plus4.cfg index f9f8b22e1..b5ee8e192 100644 --- a/src/ld65/cfg/plus4.cfg +++ b/src/ld65/cfg/plus4.cfg @@ -2,9 +2,9 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0800; # 2k stack } MEMORY { - ZP: define = yes, start = $0002, size = $001A; - HEADER: file = %O, start = $0FFF, size = $000E; - RAM: file = %O, start = $100D, size = $ECF3 - __STACKSIZE__; + ZP: file = "", define = yes, start = $0002, size = $001A; + HEADER: file = %O, start = $0FFF, size = $000E; + RAM: file = %O, start = $100D, size = $ECF3 - __STACKSIZE__; } SEGMENTS { EXEHDR: load = HEADER, type = ro; diff --git a/src/ld65/cfg/supervision-128k.cfg b/src/ld65/cfg/supervision-128k.cfg index 0d241f450..ce835db50 100644 --- a/src/ld65/cfg/supervision-128k.cfg +++ b/src/ld65/cfg/supervision-128k.cfg @@ -8,16 +8,16 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0100; # 1 page stack } MEMORY { - RAM: start = $0000, size = $2000 - __STACKSIZE__; - 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: file = "", start = $0000, size = $2000 - __STACKSIZE__; + VRAM: file = "", start = $4000, size = $2000; + BANKROM1: file = %O, start = $8000, size = $4000, fill = yes, fillval = $FF; + BANKROM2: file = %O, start = $8000, size = $4000, fill = yes, fillval = $FF; + BANKROM3: file = %O, start = $8000, size = $4000, fill = yes, fillval = $FF; + BANKROM4: file = %O, start = $8000, size = $4000, fill = yes, fillval = $FF; + BANKROM5: file = %O, start = $8000, size = $4000, fill = yes, fillval = $FF; + BANKROM6: file = %O, start = $8000, size = $4000, fill = yes, fillval = $FF; + BANKROM7: file = %O, start = $8000, size = $4000, fill = yes, fillval = $FF; + ROM: file = %O, start = $c000, size = $4000, fill = yes, fillval = $FF; } SEGMENTS { LOWCODE: load = ROM, type = ro, optional = yes; diff --git a/src/ld65/cfg/supervision-16k.cfg b/src/ld65/cfg/supervision-16k.cfg index 3a2a487ba..70cb115c9 100644 --- a/src/ld65/cfg/supervision-16k.cfg +++ b/src/ld65/cfg/supervision-16k.cfg @@ -7,11 +7,11 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0100; # 1 page stack } MEMORY { - ZP: start = $0000, size = $0100; - CPUSTACK: start = $0100, size = $0100; - RAM: start = $0200, size = $1E00 - __STACKSIZE__; - VRAM: start = $4000, size = $2000; - ROM: start = $C000, size = $4000, fill = yes, fillval = $ff, file=%O, define=yes; + ZP: file = "", start = $0000, size = $0100; + CPUSTACK: file = "", start = $0100, size = $0100; + RAM: file = "", start = $0200, size = $1E00 - __STACKSIZE__; + VRAM: file = "", start = $4000, size = $2000; + ROM: file = %O, start = $C000, size = $4000, fill = yes, fillval = $ff, define=yes; } SEGMENTS { LOWCODE: load = ROM, type = ro, optional = yes; diff --git a/src/ld65/cfg/supervision-64k.cfg b/src/ld65/cfg/supervision-64k.cfg index 400c9c385..fd5370fa5 100644 --- a/src/ld65/cfg/supervision-64k.cfg +++ b/src/ld65/cfg/supervision-64k.cfg @@ -8,12 +8,12 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0100; # 1 page stack } MEMORY { - RAM: start = $0000, size = $2000 - __STACKSIZE__; - 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: file = "", start = $0000, size = $2000 - __STACKSIZE__; + VRAM: file = "", start = $4000, size = $2000; + BANKROM1: file = %O, start = $8000, size = $4000, fill = yes, fillval = $FF; + BANKROM2: file = %O, start = $8000, size = $4000, fill = yes, fillval = $FF; + BANKROM3: file = %O, start = $8000, size = $4000, fill = yes, fillval = $FF; + ROM: file = %O, start = $C000, size = $4000, fill = yes, fillval = $FF; } SEGMENTS { LOWCODE: load = ROM, type = ro, optional = yes; diff --git a/src/ld65/cfg/supervision.cfg b/src/ld65/cfg/supervision.cfg index 22bfa446e..af6df38fa 100644 --- a/src/ld65/cfg/supervision.cfg +++ b/src/ld65/cfg/supervision.cfg @@ -3,11 +3,11 @@ # or reset from code >0xc000 and switch bank to the 3rd bank MEMORY { - 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; + ZP: file = "", start = $0000, size = $0100; + CPUSTACK: file = "", start = $0100, size = $0100; + RAM: file = "", start = $0200, size = $1E00, define = yes; + VRAM: file = "", start = $4000, size = $2000; + ROM: file = %O, start = $8000, size = $8000, fill = yes, fillval = $FF, define = yes; } SEGMENTS { LOWCODE: load = ROM, type = ro, optional = yes; diff --git a/src/ld65/cfg/vic20-32k.cfg b/src/ld65/cfg/vic20-32k.cfg index c84c03bfd..de75900cd 100644 --- a/src/ld65/cfg/vic20-32k.cfg +++ b/src/ld65/cfg/vic20-32k.cfg @@ -5,7 +5,7 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0400; # 1k stack } MEMORY { - ZP: define = yes, start = $0002, size = $001A; + ZP: file = "", define = yes, start = $0002, size = $001A; HEADER: file = %O, start = $11FF, size = $000E; RAM: file = %O, define = yes, start = $120D, size = $6DF3 - __STACKSIZE__; } diff --git a/src/ld65/cfg/vic20.cfg b/src/ld65/cfg/vic20.cfg index 1d104443d..dd8ecbcab 100644 --- a/src/ld65/cfg/vic20.cfg +++ b/src/ld65/cfg/vic20.cfg @@ -2,7 +2,7 @@ SYMBOLS { __STACKSIZE__: type = weak, value = $0400; # 1k stack } MEMORY { - ZP: define = yes, start = $0002, size = $001A; + ZP: file = "", define = yes, start = $0002, size = $001A; HEADER: file = %O, start = $0FFF, size = $000E; RAM: file = %O, define = yes, start = $100D, size = $0DF3 - __STACKSIZE__; } -- 2.39.5