2 ZP: start = $0002, size = $001A, type = rw, define = yes;
3 RAM: start = $07FF, size = $C801, file = %O, define = yes;
6 STARTUP: load = RAM, type = ro;
7 LOWCODE: load = RAM, type = ro, optional = yes;
8 INIT: load = RAM, type = ro, define = yes, optional = yes;
9 CODE: load = RAM, type = ro;
10 RODATA: load = RAM, type = ro;
11 DATA: load = RAM, type = rw;
12 BSS: load = RAM, type = bss, define = yes;
13 HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack
14 ZEROPAGE: load = ZP, type = zp;
17 CONDES: segment = INIT,
19 label = __CONSTRUCTOR_TABLE__,
20 count = __CONSTRUCTOR_COUNT__;
21 CONDES: segment = RODATA,
23 label = __DESTRUCTOR_TABLE__,
24 count = __DESTRUCTOR_COUNT__;
25 CONDES: segment = RODATA,
27 label = __INTERRUPTOR_TABLE__,
28 count = __INTERRUPTOR_COUNT__;
31 __STACKSIZE__ = $800; # 2K stack