2 STARTADDRESS: default = $2400;
6 __STACKSIZE__: type = weak, value = $0800; # 2k stack
7 __STARTADDRESS__: type = export, value = %S;
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 SYSCHKCHNK: file = %O, start = $2E00, size = $0300;
21 SYSCHKTRL: file = %O, start = $0000, size = $0006;
23 # "shadow RAM preparation" load chunk
24 SRPREPHDR: file = %O, start = $0000, size = $0004;
25 SRPREPCHNK: file = %O, define = yes, start = %S, size = $7C20 - %S - $07FF; # $07FF: space for temp. chargen buffer, 1K aligned
26 SRPREPTRL: file = %O, start = $0000, size = $0006;
28 # "main program" load chunk
29 MAINHDR: file = %O, start = $0000, size = $0004;
30 RAM: file = %O, define = yes, start = %S +
31 __LOWDATA_SIZE__, size = $D000 -
36 # defines entry point into program
37 TRAILER: file = %O, start = $0000, size = $0006;
39 # memory beneath the ROM preceeding the character generator
40 HIDDEN_RAM2: file = "", define = yes, start = $D800, size = $0800;
42 # address of relocated character generator (same addess as ROM version)
43 CHARGEN: file = "", define = yes, start = $E000, size = $0400;
45 # memory beneath the ROM
46 HIDDEN_RAM: file = "", define = yes, start = $E400, size = $FFFA - $E400;
50 EXEHDR: load = HEADER, type = ro;
52 SYSCHKHDR: load = SYSCHKHDR, type = ro, optional = yes;
53 SYSCHK: load = SYSCHKCHNK, type = rw, define = yes, optional = yes;
54 SYSCHKTRL: load = SYSCHKTRL, type = ro, optional = yes;
56 SRPREPHDR: load = SRPREPHDR, type = ro;
57 LOWDATA: load = SRPREPCHNK, type = bss, define = yes; # shared btw. SRPREP and RAM
58 SRPREP: load = SRPREPCHNK, type = rw, define = yes;
59 SHADOW_RAM: load = SRPREPCHNK, run = HIDDEN_RAM, type = rw, define = yes, optional = yes;
60 SHADOW_RAM2: load = SRPREPCHNK, run = HIDDEN_RAM2, type = rw, define = yes, optional = yes;
61 SRPREPTRL: load = SRPREPTRL, type = ro;
63 MAINHDR: load = MAINHDR, type = ro;
64 STARTUP: load = RAM, type = ro, define = yes;
65 LOWCODE: load = RAM, type = ro, define = yes, optional = yes;
66 INIT: load = RAM, type = ro, optional = yes;
67 CODE: load = RAM, type = ro, define = yes;
68 RODATA: load = RAM, type = ro;
69 DATA: load = RAM, type = rw;
70 BSS: load = RAM, type = bss, define = yes;
71 ZEROPAGE: load = ZP, type = zp;
72 EXTZP: load = ZP, type = zp, optional = yes;
73 AUTOSTRT: load = TRAILER, type = ro;
76 CONDES: type = constructor,
77 label = __CONSTRUCTOR_TABLE__,
78 count = __CONSTRUCTOR_COUNT__,
80 CONDES: type = destructor,
81 label = __DESTRUCTOR_TABLE__,
82 count = __DESTRUCTOR_COUNT__,
84 CONDES: type = interruptor,
85 label = __INTERRUPTOR_TABLE__,
86 count = __INTERRUPTOR_COUNT__,