mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 19:29:37 +00:00
d8c31cf1d3
The name RAM doesn't make much sense in general for a memeory area because i.e. the zero page is for sure RAM but is not part of the memory area named RAM. For disk based targets it makes sense to put the disk file more into focus and here MAIN means the main part of the file - in contrast to some header. Only for ROM based targets the name RAM is kept as it makes sense to focus on the difference between RAM and ROM.
31 lines
1.3 KiB
INI
31 lines
1.3 KiB
INI
FEATURES {
|
|
STARTADDRESS: default = $2E00;
|
|
}
|
|
SYMBOLS {
|
|
__EXEHDR__: type = import;
|
|
__AUTOSTART__: type = import; # force inclusion of autostart "trailer"
|
|
__STARTADDRESS__: type = export, value = %S;
|
|
}
|
|
MEMORY {
|
|
ZP: file = "", define = yes, start = $0082, size = $007E;
|
|
|
|
# file header, just $FFFF
|
|
HEADER: file = %O, start = $0000, size = $0002;
|
|
|
|
# "main program" load chunk
|
|
MAINHDR: file = %O, start = $0000, size = $0004;
|
|
MAIN: file = %O, define = yes, start = %S, size = $BC20 - %S;
|
|
TRAILER: file = %O, start = $0000, size = $0006;
|
|
}
|
|
SEGMENTS {
|
|
ZEROPAGE: load = ZP, type = zp, optional = yes;
|
|
EXTZP: load = ZP, type = zp, optional = yes; # to enable modules to be able to link to C and assembler programs
|
|
EXEHDR: load = HEADER, type = ro, optional = yes;
|
|
MAINHDR: load = MAINHDR, type = ro, optional = yes;
|
|
CODE: load = MAIN, type = ro, define = yes, optional = yes;
|
|
RODATA: load = MAIN, type = ro optional = yes;
|
|
DATA: load = MAIN, type = rw optional = yes;
|
|
BSS: load = MAIN, type = bss, define = yes, optional = yes;
|
|
AUTOSTRT: load = TRAILER, type = ro, optional = yes;
|
|
}
|