2 STARTADDRESS: default = $0800;
5 ZP: start = $0080, size = $001A, define = yes;
6 HEADER: start = $0000, size = $0004, file = %O;
7 RAM: start = %S, size = $9600 - %S, file = %O;
10 EXEHDR: load = HEADER, type = ro;
11 STARTUP: load = RAM, type = ro, define = yes;
12 LOWCODE: load = RAM, type = ro, optional = yes;
13 INIT: load = RAM, type = ro, define = yes, optional = yes;
14 CODE: load = RAM, type = ro;
15 RODATA: load = RAM, type = ro;
16 DATA: load = RAM, type = rw;
17 BSS: load = RAM, type = bss, define = yes;
18 HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack
19 ZEROPAGE: load = ZP, type = zp;
22 CONDES: segment = INIT,
24 label = __CONSTRUCTOR_TABLE__,
25 count = __CONSTRUCTOR_COUNT__;
26 CONDES: segment = RODATA,
28 label = __DESTRUCTOR_TABLE__,
29 count = __DESTRUCTOR_COUNT__;
30 CONDES: type = interruptor,
32 label = __INTERRUPTOR_TABLE__,
33 count = __INTERRUPTOR_COUNT__;
36 __STACKSIZE__ = $800; # 2K stack