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 - $04FF; # $04FF: space for temp. chargen buffer, page 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 + __SAVEAREA_SIZE__ + __ZPSAVE_SIZE__, size = $D000 - __STACKSIZE__ - %S - __SAVEAREA_SIZE__ - __ZPSAVE_SIZE__;
31 # address of relocated character generator
32 CHARGEN: file = "", define = yes, start = $D800, size = $0400;
34 # memory beneath the ROM
35 RAM_BELOW_ROM: file = "", start = $DC00, size = $FFF0 - $DC00;
37 # defines entry point into program
38 TRAILER: file = %O, start = $0000, size = $0006;
42 EXEHDR: load = HEADER, type = ro;
44 SYSCHKHDR: load = SYSCHKHDR, type = ro, optional = yes;
45 SYSCHK: load = SYSCHK, type = rw, define = yes, optional = yes;
47 SRPREPHDR: load = SRPREPHDR, type = ro;
48 SAVEAREA: load = SRPREP, type = bss, define = yes; # shared btw. SRPREP and RAM
49 ZPSAVE: load = SRPREP, type = bss, define = yes;
50 SRPREP: load = SRPREP, type = rw, define = yes;
51 SHADOW_RAM: load = SRPREP, run = RAM_BELOW_ROM, type = rw, define = yes, optional = yes;
52 SRPREPTRL: load = SRPREPTRL, type = ro;
54 MAINHDR: load = MAINHDR, type = ro;
55 STARTUP: load = RAM, type = ro, define = yes;
56 LOWCODE: load = RAM, type = ro, define = yes, optional = yes;
57 INIT: load = RAM, type = ro, optional = yes;
58 CODE: load = RAM, type = ro, define = yes;
59 RODATA: load = RAM, type = ro;
60 DATA: load = RAM, type = rw;
61 BSS: load = RAM, type = bss, define = yes;
62 ZEROPAGE: load = ZP, type = zp;
63 EXTZP: load = ZP, type = zp, optional = yes;
64 AUTOSTRT: load = TRAILER, type = ro;
67 CONDES: type = constructor,
68 label = __CONSTRUCTOR_TABLE__,
69 count = __CONSTRUCTOR_COUNT__,
71 CONDES: type = destructor,
72 label = __DESTRUCTOR_TABLE__,
73 count = __DESTRUCTOR_COUNT__,
75 CONDES: type = interruptor,
76 label = __INTERRUPTOR_TABLE__,
77 count = __INTERRUPTOR_COUNT__,