2 STARTADDRESS: default = $2000;
5 __EXEHDR__: type = import;
6 __SYSTEM_CHECK__: type = import; # force inclusion of "system check" load chunk
7 __AUTOSTART__: type = import; # force inclusion of autostart "trailer"
8 __STACKSIZE__: type = weak, value = $0800; # 2k stack
9 __STARTADDRESS__: type = export, value = %S;
10 __RESERVED_MEMORY__: type = weak, value = $0000;
13 ZP: file = "", define = yes, start = $0082, size = $007E;
15 # file header, just $FFFF
16 HEADER: file = %O, start = $0000, size = $0002;
18 # "system check" load chunk
19 SYSCHKHDR: file = %O, start = $0000, size = $0004;
20 SYSCHKCHNK: file = %O, start = $2E00, size = $0300;
21 SYSCHKTRL: file = %O, start = $0000, size = $0006;
23 # "main program" load chunk
24 MAINHDR: file = %O, start = $0000, size = $0004;
25 MAIN: file = %O, define = yes, start = %S, size = $BC20 - __STACKSIZE__ - __RESERVED_MEMORY__ - %S;
26 TRAILER: file = %O, start = $0000, size = $0006;
29 ZEROPAGE: load = ZP, type = zp;
30 EXTZP: load = ZP, type = zp, optional = yes;
31 EXEHDR: load = HEADER, type = ro;
32 SYSCHKHDR: load = SYSCHKHDR, type = ro, optional = yes;
33 SYSCHK: load = SYSCHKCHNK, type = rw, define = yes, optional = yes;
34 SYSCHKTRL: load = SYSCHKTRL, type = ro, optional = yes;
35 MAINHDR: load = MAINHDR, type = ro;
36 STARTUP: load = MAIN, type = ro, define = yes;
37 LOWCODE: load = MAIN, type = ro, define = yes, optional = yes;
38 ONCE: load = MAIN, type = ro, optional = yes;
39 CODE: load = MAIN, type = ro, define = yes;
40 RODATA: load = MAIN, type = ro;
41 DATA: load = MAIN, type = rw;
42 INIT: load = MAIN, type = rw, optional = yes;
43 BSS: load = MAIN, type = bss, define = yes;
44 AUTOSTRT: load = TRAILER, type = ro;
47 CONDES: type = constructor,
48 label = __CONSTRUCTOR_TABLE__,
49 count = __CONSTRUCTOR_COUNT__,
51 CONDES: type = destructor,
52 label = __DESTRUCTOR_TABLE__,
53 count = __DESTRUCTOR_COUNT__,
55 CONDES: type = interruptor,
56 label = __INTERRUPTOR_TABLE__,
57 count = __INTERRUPTOR_COUNT__,