2 __CARTSIZE__: type = weak, value = $4000; # possible values: $4000 and $8000
3 __CART_ENTRY__: type = import;
4 __STACKSIZE__: type = weak, value = $0300; # 3 pages stack
7 ZP: file = "", start = $0019, size = $00E7, define = yes;
8 RAM: file = "", start = $021C, size = $4000 - __STACKSIZE__ - $021C, define = yes;
9 ROM: file = %O, start = $C000 - __CARTSIZE__, size = __CARTSIZE__ - $18, define = yes, fill = yes, fillval = $FF;
10 CARTNAME: file = %O, start = $BFE8, size = $0014 fill = yes, fillval = $40;
11 CARTYEAR: file = %O, start = $BFFC, size = $0002 fill = yes, fillval = $59;
12 CARTENTRY: file = %O, start = $BFFE, size = $0002;
15 STARTUP: load = ROM, type = ro, define = yes, optional = yes;
16 LOWCODE: load = ROM, type = ro, define = yes, optional = yes;
17 INIT: load = ROM, type = ro, optional = yes;
18 CODE: load = ROM, type = ro, define = yes;
19 RODATA: load = ROM, type = ro, optional = yes;
20 DATA: load = ROM, run = RAM, type = rw, define = yes, optional = yes;
21 BSS: load = RAM, type = bss, define = yes, optional = yes;
22 CARTNAME: load = CARTNAME, type = ro, define = yes;
23 CARTYEAR: load = CARTYEAR, type = ro, define = yes;
24 CARTENTRY: load = CARTENTRY, type = ro, define = yes;
25 ZEROPAGE: load = ZP, type = zp, optional = yes;
26 EXTZP: load = ZP, type = zp, optional = yes;
29 CONDES: type = constructor,
30 label = __CONSTRUCTOR_TABLE__,
31 count = __CONSTRUCTOR_COUNT__,
33 CONDES: type = destructor,
34 label = __DESTRUCTOR_TABLE__,
35 count = __DESTRUCTOR_COUNT__,
37 CONDES: type = interruptor,
38 label = __INTERRUPTOR_TABLE__,
39 count = __INTERRUPTOR_COUNT__,