2013-04-09 21:10:35 +00:00
|
|
|
# Default configuration (allowing for 3KB in LC)
|
2010-11-12 14:17:35 +00:00
|
|
|
|
2005-09-14 08:55:28 +00:00
|
|
|
FEATURES {
|
2008-03-16 09:37:22 +00:00
|
|
|
STARTADDRESS: default = $0803;
|
2005-09-14 08:55:28 +00:00
|
|
|
}
|
2010-03-21 17:10:17 +00:00
|
|
|
SYMBOLS {
|
2012-06-10 21:05:51 +00:00
|
|
|
__EXEHDR__: type = import;
|
2016-03-17 20:07:19 +00:00
|
|
|
__STACKSIZE__: type = weak, value = $0800; # 2k stack
|
2012-06-16 22:48:45 +00:00
|
|
|
__HIMEM__: type = weak, value = $9600; # Presumed RAM end
|
2012-06-16 20:36:34 +00:00
|
|
|
__LCADDR__: type = weak, value = $D400; # Behind quit code
|
|
|
|
__LCSIZE__: type = weak, value = $0C00; # Rest of bank two
|
2010-03-21 17:10:17 +00:00
|
|
|
}
|
2000-10-31 18:08:25 +00:00
|
|
|
MEMORY {
|
2016-03-17 20:07:19 +00:00
|
|
|
ZP: file = "", define = yes, start = $0080, size = $001A;
|
|
|
|
HEADER: file = %O, start = %S - 4, size = $0004;
|
|
|
|
MAIN: file = %O, define = yes, start = %S, size = __HIMEM__ - %S;
|
|
|
|
BSS: file = "", start = __ONCE_RUN__, size = __HIMEM__ - __STACKSIZE__ - __ONCE_RUN__;
|
|
|
|
LC: file = "", define = yes, start = __LCADDR__, size = __LCSIZE__;
|
2000-10-31 18:08:25 +00:00
|
|
|
}
|
|
|
|
SEGMENTS {
|
2016-03-17 20:07:19 +00:00
|
|
|
ZEROPAGE: load = ZP, type = zp;
|
2018-02-02 13:46:57 +00:00
|
|
|
EXEHDR: load = HEADER, type = ro, optional = yes;
|
2016-03-17 20:07:19 +00:00
|
|
|
STARTUP: load = MAIN, type = ro;
|
|
|
|
LOWCODE: load = MAIN, type = ro, optional = yes;
|
|
|
|
CODE: load = MAIN, type = ro;
|
|
|
|
RODATA: load = MAIN, type = ro;
|
|
|
|
DATA: load = MAIN, type = rw;
|
|
|
|
INIT: load = MAIN, type = rw;
|
|
|
|
ONCE: load = MAIN, type = ro, define = yes;
|
|
|
|
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
|
|
|
BSS: load = BSS, type = bss, define = yes;
|
2000-10-31 18:08:25 +00:00
|
|
|
}
|
2000-11-20 23:04:30 +00:00
|
|
|
FEATURES {
|
2013-02-12 20:55:19 +00:00
|
|
|
CONDES: type = constructor,
|
2008-03-16 09:37:22 +00:00
|
|
|
label = __CONSTRUCTOR_TABLE__,
|
2013-02-12 20:55:19 +00:00
|
|
|
count = __CONSTRUCTOR_COUNT__,
|
2016-03-06 20:26:22 +00:00
|
|
|
segment = ONCE;
|
2013-02-12 20:55:19 +00:00
|
|
|
CONDES: type = destructor,
|
2008-03-16 09:37:22 +00:00
|
|
|
label = __DESTRUCTOR_TABLE__,
|
2013-02-12 20:55:19 +00:00
|
|
|
count = __DESTRUCTOR_COUNT__,
|
|
|
|
segment = RODATA;
|
|
|
|
CONDES: type = interruptor,
|
2008-03-16 09:37:22 +00:00
|
|
|
label = __INTERRUPTOR_TABLE__,
|
2012-11-03 21:59:15 +00:00
|
|
|
count = __INTERRUPTOR_COUNT__,
|
2013-02-12 20:55:19 +00:00
|
|
|
segment = RODATA,
|
2012-11-03 21:59:15 +00:00
|
|
|
import = __CALLIRQ__;
|
2000-11-20 23:04:30 +00:00
|
|
|
}
|