2 STARTADDRESS: default = $2E00;
5 __STACKSIZE__ = $800; # 2K stack
6 __RESERVED_MEMORY__: value = $0, weak = yes;
9 ZP: start = $0082, size = $007E, type = rw, define = yes;
10 HEADER: start = $0000, size = $0006, file = %O;
11 RAM: start = %S, size = $BC20 - __STACKSIZE__ - %S, file = %O;
12 TRAILER: start = $0000, size = $0006, file = %O;
15 EXEHDR: load = HEADER, type = ro;
16 LOWCODE: load = RAM, type = ro, define = yes, optional = yes;
17 INIT: load = RAM, type = ro, optional = yes;
18 CODE: load = RAM, type = ro;
19 RODATA: load = RAM, type = ro;
20 DATA: load = RAM, type = rw;
21 BSS: load = RAM, type = bss, define = yes;
22 HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack
23 ZEROPAGE: load = ZP, type = zp;
24 EXTZP: load = ZP, type = zp, optional = yes;
25 AUTOSTRT: load = TRAILER, type = ro;
28 CONDES: segment = INIT,
30 label = __CONSTRUCTOR_TABLE__,
31 count = __CONSTRUCTOR_COUNT__;
32 CONDES: segment = RODATA,
34 label = __DESTRUCTOR_TABLE__,
35 count = __DESTRUCTOR_COUNT__;
36 CONDES: type = interruptor,
38 label = __INTERRUPTOR_TABLE__,
39 count = __INTERRUPTOR_COUNT__;