2009-09-26 16:12:02 +00:00
|
|
|
# Configuration for ProDOS 8 system programs (without the header)
|
|
|
|
|
2010-03-21 17:10:17 +00:00
|
|
|
SYMBOLS {
|
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-11-12 14:17:35 +00:00
|
|
|
__STACKSIZE__: type = weak, value = $0800; # 2k stack
|
2012-06-16 22:13:58 +00:00
|
|
|
__LOADADDR__: type = weak, value = __STARTUP_RUN__;
|
|
|
|
__LOADSIZE__: type = weak, value = __ZPSAVE_RUN__ - __STARTUP_RUN__ +
|
2012-06-14 20:44:35 +00:00
|
|
|
__MOVE_LAST__ - __MOVE_START__;
|
2010-03-21 17:10:17 +00:00
|
|
|
}
|
2009-09-26 16:12:02 +00:00
|
|
|
MEMORY {
|
2012-06-16 21:12:56 +00:00
|
|
|
ZP: define = yes, start = $0080, size = $001A;
|
2012-06-16 22:13:58 +00:00
|
|
|
RAM: file = %O, start = $2000, size = $9F00 - __STACKSIZE__;
|
2012-06-16 21:12:56 +00:00
|
|
|
MOVE: file = %O, define = yes, start = $0000, size = $FFFF;
|
|
|
|
LC: define = yes, start = __LCADDR__, size = __LCSIZE__;
|
2009-09-26 16:12:02 +00:00
|
|
|
}
|
|
|
|
SEGMENTS {
|
|
|
|
ZEROPAGE: load = ZP, type = zp;
|
2012-06-16 22:13:58 +00:00
|
|
|
STARTUP: load = RAM, type = ro, define = yes;
|
2009-09-26 16:12:02 +00:00
|
|
|
LOWCODE: load = RAM, type = ro;
|
|
|
|
CODE: load = RAM, type = ro;
|
|
|
|
RODATA: load = RAM, type = ro;
|
|
|
|
DATA: load = RAM, type = rw;
|
|
|
|
ZPSAVE: load = RAM, type = bss, define = yes;
|
|
|
|
BSS: load = RAM, type = bss, define = yes;
|
|
|
|
INIT: load = MOVE, run = RAM, type = ro, define = yes;
|
2012-06-16 20:57:49 +00:00
|
|
|
LC: load = MOVE, run = LC, type = ro, optional = 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__,
|
|
|
|
segment = INIT;
|
|
|
|
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
|
|
|
}
|