2 ZP: start = $0082, size = $007E, type = rw, define = yes;
3 HEADER: start = $0000, size = $0006, file = %O;
4 RAM: start = $2E00, size = $8E20, file = %O; # $8E20: matches upper bound $BC1F
7 EXEHDR: load = HEADER, type = ro;
8 LOWCODE: load = RAM, type = ro, define = yes, optional = yes;
9 INIT: load = RAM, type = ro, optional = yes;
10 CODE: load = RAM, type = ro;
11 RODATA: load = RAM, type = ro;
12 DATA: load = RAM, type = rw;
13 BSS: load = RAM, type = bss, define = yes;
14 HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack
15 ZEROPAGE: load = ZP, type = zp;
16 EXTZP: load = ZP, type = zp, optional = yes;
17 AUTOSTRT: load = RAM, type = ro;
20 CONDES: segment = INIT,
22 label = __CONSTRUCTOR_TABLE__,
23 count = __CONSTRUCTOR_COUNT__;
24 CONDES: segment = RODATA,
26 label = __DESTRUCTOR_TABLE__,
27 count = __DESTRUCTOR_COUNT__;
28 CONDES: type = interruptor,
30 label = __INTERRUPTOR_TABLE__,
31 count = __INTERRUPTOR_COUNT__;
34 __STACKSIZE__ = $800; # 2K stack