2018-03-07 22:04:33 +00:00
|
|
|
# Configuration for ProDOS 8 system programs (allowing for 3KB in LC)
|
2009-09-26 16:12:02 +00:00
|
|
|
|
2010-03-21 17:10:17 +00:00
|
|
|
SYMBOLS {
|
2018-03-07 22:04:33 +00:00
|
|
|
__EXEHDR__: type = import;
|
|
|
|
__FILETYPE__: type = weak, value = $00FF; # ProDOS file type
|
2016-03-17 20:07:19 +00:00
|
|
|
__STACKSIZE__: type = weak, value = $0800; # 2k stack
|
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 {
|
2018-03-07 22:04:33 +00:00
|
|
|
ZP: file = "", define = yes, start = $0080, size = $001A;
|
|
|
|
HEADER: file = %O, start = $2000 - $003A, size = $003A;
|
|
|
|
MAIN: file = %O, define = yes, start = $2000, size = $BF00 - $2000;
|
|
|
|
BSS: file = "", start = __ONCE_RUN__, size = $BF00 - __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-03-07 22:04:33 +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;
|
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
|
|
|
}
|