2 STARTADDRESS: default = $0801;
5 __LOADADDR__: type = import;
6 __EXEHDR__: type = import;
7 __STACKSIZE__: type = weak, value = $0800; # 2k stack
8 __HIMEM__: type = weak, value = $D000;
11 ZP: file = "", define = yes, start = $0002, size = $001A;
12 LOADADDR: file = %O, start = %S - 2, size = $0002;
13 HEADER: file = %O, define = yes, start = %S, size = $000D;
14 MAIN: file = %O, define = yes, start = __HEADER_LAST__, size = __HIMEM__ - __HEADER_LAST__;
15 BSS: file = "", start = __ONCE_RUN__, size = __HIMEM__ - __STACKSIZE__ - __ONCE_RUN__;
18 ZEROPAGE: load = ZP, type = zp;
19 LOADADDR: load = LOADADDR, type = ro;
20 EXEHDR: load = HEADER, type = ro;
21 STARTUP: load = MAIN, type = ro;
22 LOWCODE: load = MAIN, type = ro, optional = yes;
23 CODE: load = MAIN, type = ro;
24 RODATA: load = MAIN, type = ro;
25 DATA: load = MAIN, type = rw;
26 INIT: load = MAIN, type = rw;
27 ONCE: load = MAIN, type = ro, define = yes;
28 BSS: load = BSS, type = bss, define = yes;
31 CONDES: type = constructor,
32 label = __CONSTRUCTOR_TABLE__,
33 count = __CONSTRUCTOR_COUNT__,
35 CONDES: type = destructor,
36 label = __DESTRUCTOR_TABLE__,
37 count = __DESTRUCTOR_COUNT__,
39 CONDES: type = interruptor,
40 label = __INTERRUPTOR_TABLE__,
41 count = __INTERRUPTOR_COUNT__,