2013-10-18 01:07:01 +00:00
|
|
|
FEATURES {
|
|
|
|
STARTADDRESS: default = $2E00;
|
|
|
|
}
|
|
|
|
SYMBOLS {
|
2016-03-07 00:28:55 +00:00
|
|
|
__EXEHDR__: type = import;
|
|
|
|
__AUTOSTART__: type = import; # force inclusion of autostart "trailer"
|
|
|
|
__STARTADDRESS__: type = export, value = %S;
|
2013-10-18 01:07:01 +00:00
|
|
|
}
|
|
|
|
MEMORY {
|
2016-03-07 00:28:55 +00:00
|
|
|
ZP: file = "", define = yes, start = $0082, size = $007E;
|
2013-10-18 01:07:01 +00:00
|
|
|
|
|
|
|
# file header, just $FFFF
|
2016-03-07 00:28:55 +00:00
|
|
|
HEADER: file = %O, start = $0000, size = $0002;
|
2013-10-18 01:07:01 +00:00
|
|
|
|
|
|
|
# "main program" load chunk
|
2016-03-07 00:28:55 +00:00
|
|
|
MAINHDR: file = %O, start = $0000, size = $0004;
|
|
|
|
MAIN: file = %O, define = yes, start = %S, size = $BC20 - %S;
|
|
|
|
TRAILER: file = %O, start = $0000, size = $0006;
|
2013-10-18 01:07:01 +00:00
|
|
|
}
|
|
|
|
SEGMENTS {
|
2016-03-07 00:28:55 +00:00
|
|
|
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;
|
2013-10-18 01:07:01 +00:00
|
|
|
}
|