2 STARTADDRESS: default = $2E00;
6 __STACKSIZE__: type = weak, value = $0800; # 2k stack
7 __RESERVED_MEMORY__: type = weak, value = $0000;
8 syschk: type = import; # force inclusion of SYSCHK
9 sramprep: type = import; # force inclusion of SRPREP
13 ZP: file = "", define = yes, start = $0082, size = $007E;
16 HEADER: file = %O, start = $0000, size = $0002;
18 # "system check" load chunk
19 SYSCHKHDR: file = %O, start = $0000, size = $0004;
20 SYSCHK: file = %O, start = $2E00, size = $0E00;
22 # "shadow RAM preparation" load chunk
23 SRPREPHDR: file = %O, start = $0000, size = $0004;
24 SRPREP: file = %O, start = %S, size = $7C20 - %S - $07FF; # $07FF: space for temp. chargen buffer, 1K aligned
25 SRPREPTRL: file = %O, start = $0000, size = $0006;
27 # "main program" load chunk
28 MAINHDR: file = %O, start = $0000, size = $0004;
29 RAM: file = %O, define = yes, start = %S +
31 __LOWBUFS_SIZE__, size = $D000 -
37 # defines entry point into program
38 TRAILER: file = %O, start = $0000, size = $0006;
40 # address of relocated character generator
41 CHARGEN: file = "", define = yes, start = $D800, size = $0400;
43 # memory beneath the ROM
44 RAM_BELOW_ROM: file = "", define = yes, start = $DC00, size = $FFF0 - $DC00;
48 EXEHDR: load = HEADER, type = ro;
50 SYSCHKHDR: load = SYSCHKHDR, type = ro, optional = yes;
51 SYSCHK: load = SYSCHK, type = rw, define = yes, optional = yes;
53 SRPREPHDR: load = SRPREPHDR, type = ro;
54 SAVEAREA: load = SRPREP, type = bss, define = yes; # shared btw. SRPREP and RAM
55 LOWBUFS: load = SRPREP, type = bss, define = yes;
56 SRPREP: load = SRPREP, type = rw, define = yes;
57 SHADOW_RAM: load = SRPREP, run = RAM_BELOW_ROM, type = rw, define = yes, optional = yes;
58 SRPREPTRL: load = SRPREPTRL, type = ro;
60 MAINHDR: load = MAINHDR, type = ro;
61 STARTUP: load = RAM, type = ro, define = yes;
62 LOWCODE: load = RAM, type = ro, define = yes, optional = yes;
63 INIT: load = RAM, type = ro, optional = yes;
64 CODE: load = RAM, type = ro, define = yes;
65 RODATA: load = RAM, type = ro;
66 DATA: load = RAM, type = rw;
67 BSS: load = RAM, type = bss, define = yes;
68 ZEROPAGE: load = ZP, type = zp;
69 EXTZP: load = ZP, type = zp, optional = yes;
70 AUTOSTRT: load = TRAILER, type = ro;
73 CONDES: type = constructor,
74 label = __CONSTRUCTOR_TABLE__,
75 count = __CONSTRUCTOR_COUNT__,
77 CONDES: type = destructor,
78 label = __DESTRUCTOR_TABLE__,
79 count = __DESTRUCTOR_COUNT__,
81 CONDES: type = interruptor,
82 label = __INTERRUPTOR_TABLE__,
83 count = __INTERRUPTOR_COUNT__,