2013-04-09 21:10:35 +00:00
|
|
|
# Default configuration (allowing for 3KB in LC)
|
2010-11-12 14:17:35 +00:00
|
|
|
|
2009-09-26 16:12:02 +00:00
|
|
|
FEATURES {
|
|
|
|
STARTADDRESS: default = $0803;
|
|
|
|
}
|
2010-03-21 17:10:17 +00:00
|
|
|
SYMBOLS {
|
2012-06-10 21:05:51 +00:00
|
|
|
__EXEHDR__: type = import;
|
2018-03-07 22:04:33 +00:00
|
|
|
__FILETYPE__: type = weak, value = $0006; # ProDOS file type
|
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
|
|
|
}
|
2009-09-26 16:12:02 +00:00
|
|
|
MEMORY {
|
2016-03-17 20:07:19 +00:00
|
|
|
ZP: file = "", define = yes, start = $0080, size = $001A;
|
2018-03-07 22:04:33 +00:00
|
|
|
HEADER: file = %O, start = %S - $003A, size = $003A;
|
2016-03-17 20:07:19 +00:00
|
|
|
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__;
|
2009-09-26 16:12:02 +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;
|
2023-09-05 04:24:18 +00:00
|
|
|
INIT: load = MAIN, type = rw; # uninitialized, but reserves output space
|
2016-03-17 20:07:19 +00:00
|
|
|
ONCE: load = MAIN, type = ro, define = yes;
|
|
|
|
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
|
|
|
BSS: load = BSS, type = bss, define = yes;
|
2009-09-26 16:12:02 +00:00
|
|
|
}
|
|
|
|
FEATURES {
|
2013-02-12 20:55:19 +00:00
|
|
|
CONDES: type = constructor,
|
2009-09-26 16:12:02 +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,
|
2009-09-26 16:12:02 +00:00
|
|
|
label = __DESTRUCTOR_TABLE__,
|
2013-02-12 20:55:19 +00:00
|
|
|
count = __DESTRUCTOR_COUNT__,
|
|
|
|
segment = RODATA;
|
|
|
|
CONDES: type = interruptor,
|
2009-09-26 16:12:02 +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__;
|
2009-09-26 16:12:02 +00:00
|
|
|
}
|