2014-03-01 16:20:09 +00:00
|
|
|
SYMBOLS {
|
2014-03-13 01:36:10 +00:00
|
|
|
__CARTSIZE__: type = weak, value = $4000; # possible values: $4000 and $8000
|
|
|
|
__CART_ENTRY__: type = import;
|
|
|
|
__STACKSIZE__: type = weak, value = $0400; # 4 pages stack
|
|
|
|
__RESERVED_MEMORY__: type = export, value = $0200; # space for display list and 20x24 screen buffer
|
2014-03-01 16:20:09 +00:00
|
|
|
}
|
|
|
|
MEMORY {
|
2014-03-13 01:36:10 +00:00
|
|
|
ZP: file = "", start = $0019, size = $00E7, define = yes;
|
|
|
|
RAM: file = "", start = $021C, size = $4000 - __STACKSIZE__ - __RESERVED_MEMORY__ - $021C, define = yes;
|
|
|
|
ROM: file = %O, start = $C000 - __CARTSIZE__, size = __CARTSIZE__ - $18, define = yes, fill = yes, fillval = $FF;
|
|
|
|
CARTNAME: file = %O, start = $BFE8, size = $0014 fill = yes, fillval = $40;
|
|
|
|
CARTYEAR: file = %O, start = $BFFC, size = $0002 fill = yes, fillval = $59;
|
2014-03-01 16:20:09 +00:00
|
|
|
CARTENTRY: file = %O, start = $BFFE, size = $0002;
|
|
|
|
}
|
|
|
|
SEGMENTS {
|
|
|
|
STARTUP: load = ROM, type = ro, define = yes, optional = yes;
|
|
|
|
LOWCODE: load = ROM, type = ro, define = yes, optional = yes;
|
|
|
|
INIT: load = ROM, type = ro, optional = yes;
|
|
|
|
CODE: load = ROM, type = ro, define = yes;
|
|
|
|
RODATA: load = ROM, type = ro, optional = yes;
|
|
|
|
DATA: load = ROM, run = RAM, type = rw, define = yes, optional = yes;
|
|
|
|
BSS: load = RAM, type = bss, define = yes, optional = yes;
|
|
|
|
CARTNAME: load = CARTNAME, type = ro, define = yes;
|
|
|
|
CARTYEAR: load = CARTYEAR, type = ro, define = yes;
|
|
|
|
CARTENTRY: load = CARTENTRY, type = ro, define = yes;
|
|
|
|
ZEROPAGE: load = ZP, type = zp, optional = yes;
|
|
|
|
EXTZP: load = ZP, type = zp, optional = yes;
|
|
|
|
}
|
|
|
|
FEATURES {
|
|
|
|
CONDES: type = constructor,
|
|
|
|
label = __CONSTRUCTOR_TABLE__,
|
|
|
|
count = __CONSTRUCTOR_COUNT__,
|
|
|
|
segment = INIT;
|
|
|
|
CONDES: type = destructor,
|
|
|
|
label = __DESTRUCTOR_TABLE__,
|
|
|
|
count = __DESTRUCTOR_COUNT__,
|
|
|
|
segment = RODATA;
|
|
|
|
CONDES: type = interruptor,
|
|
|
|
label = __INTERRUPTOR_TABLE__,
|
|
|
|
count = __INTERRUPTOR_COUNT__,
|
|
|
|
segment = RODATA,
|
|
|
|
import = __CALLIRQ__;
|
|
|
|
}
|