2 STARTADDRESS: default = $1001;
5 __LOADADDR__: type = import;
6 __EXEHDR__: type = import;
7 __STACKSIZE__: type = weak, value = $0800; # 2k stack
8 __HIMEM__: type = weak, value = $FD00;
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__ - __MAIN_START__ - __STACKSIZE__;
17 ZEROPAGE: load = ZP, type = zp;
18 LOADADDR: load = LOADADDR, type = ro;
19 EXEHDR: load = HEADER, type = ro;
20 STARTUP: load = MAIN, type = ro;
21 LOWCODE: load = MAIN, type = ro, optional = yes;
22 CODE: load = MAIN, type = ro;
23 ONCE: load = MAIN, type = ro, optional = yes;
24 RODATA: load = MAIN, type = ro;
25 DATA: load = MAIN, type = rw;
26 INIT: load = MAIN, type = bss;
27 BSS: load = MAIN, type = bss, define = yes;
30 CONDES: type = constructor,
31 label = __CONSTRUCTOR_TABLE__,
32 count = __CONSTRUCTOR_COUNT__,
34 CONDES: type = destructor,
35 label = __DESTRUCTOR_TABLE__,
36 count = __DESTRUCTOR_COUNT__,
38 CONDES: type = interruptor,
39 label = __INTERRUPTOR_TABLE__,
40 count = __INTERRUPTOR_COUNT__,