mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
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
This commit is contained in:
parent
de14990fbb
commit
c797be4767
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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__;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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__;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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__;
|
||||
}
|
||||
|
@ -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__;
|
||||
}
|
||||
|
@ -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__;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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__;
|
||||
}
|
||||
|
@ -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__;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user