2 STARTADDRESS: default = $2E00;
5 __STACKSIZE__: type = weak, value = $0800; # 2k stack
6 __STARTADDRESS__: type = export, value = %S;
7 __RESERVED_MEMORY__: type = weak, value = $0000;
8 syschk: type = import; # force inclusion of SYSCHK
11 ZP: file = "", define = yes, start = $0082, size = $007E;
13 # file header, just $FFFF
14 HEADER: file = %O, start = $0000, size = $0002;
16 # "system check" load chunk
17 SYSCHKHDR: file = %O, start = $0000, size = $0004;
18 SYSCHKCHNK: file = %O, start = $2E00, size = $0300;
19 SYSCHKTRL: file = %O, start = $0000, size = $0006;
21 # "main program" load chunk
22 MAINHDR: file = %O, start = $0000, size = $0004;
23 RAM: file = %O, define = yes, start = %S, size = $BC20 - __STACKSIZE__ - __RESERVED_MEMORY__ - %S;
24 TRAILER: file = %O, start = $0000, size = $0006;
27 EXEHDR: load = HEADER, type = ro;
28 SYSCHKHDR: load = SYSCHKHDR, type = ro, optional = yes;
29 SYSCHK: load = SYSCHKCHNK, type = rw, define = yes, optional = yes;
30 SYSCHKTRL: load = SYSCHKTRL, type = ro, optional = yes;
31 MAINHDR: load = MAINHDR, type = ro;
32 STARTUP: load = RAM, type = ro, define = yes;
33 LOWCODE: load = RAM, type = ro, define = yes, optional = yes;
34 INIT: load = RAM, type = ro, optional = yes;
35 CODE: load = RAM, type = ro, define = yes;
36 RODATA: load = RAM, type = ro;
37 DATA: load = RAM, type = rw;
38 BSS: load = RAM, type = bss, define = yes;
39 ZEROPAGE: load = ZP, type = zp;
40 EXTZP: load = ZP, type = zp, optional = yes;
41 AUTOSTRT: load = TRAILER, type = ro;
44 CONDES: type = constructor,
45 label = __CONSTRUCTOR_TABLE__,
46 count = __CONSTRUCTOR_COUNT__,
48 CONDES: type = destructor,
49 label = __DESTRUCTOR_TABLE__,
50 count = __DESTRUCTOR_COUNT__,
52 CONDES: type = interruptor,
53 label = __INTERRUPTOR_TABLE__,
54 count = __INTERRUPTOR_COUNT__,