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;
|
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-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 20:36:34 +00:00
|
|
|
HEADER: file = %O, start = $0000, size = $0004;
|
2012-06-16 22:48:45 +00:00
|
|
|
RAM: file = %O, start = %S, size = __HIMEM__ - __STACKSIZE__ - %S;
|
2012-06-16 20:36:34 +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;
|
|
|
|
EXEHDR: load = HEADER, type = ro;
|
2012-06-16 22:13:58 +00:00
|
|
|
STARTUP: load = RAM, type = ro, define = yes;
|
2014-04-28 19:46:42 +00:00
|
|
|
LOWCODE: load = RAM, type = ro, optional = yes;
|
2009-09-26 16:12:02 +00:00
|
|
|
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;
|
2014-04-28 19:46:42 +00:00
|
|
|
INIT: load = MOVE, run = RAM, type = ro, define = yes, optional = yes;
|
|
|
|
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
|
|
|
}
|