2 STARTADDRESS: default = $2400;
6 __EXEHDR__: type = import;
7 __SYSTEM_CHECK__: type = import; # force inclusion of "system check" load chunk
8 __AUTOSTART__: type = import; # force inclusion of autostart "trailer"
9 __STACKSIZE__: type = weak, value = $0800; # 2k stack
10 __STARTADDRESS__: type = export, value = %S;
14 ZP: file = "", define = yes, start = $0082, size = $007E;
17 HEADER: file = %O, start = $0000, size = $0002;
19 # "system check" load chunk
20 SYSCHKHDR: file = %O, start = $0000, size = $0004;
21 SYSCHKCHNK: file = %O, start = $2E00, size = $0300;
22 SYSCHKTRL: file = %O, start = $0000, size = $0006;
24 # "shadow RAM preparation" load chunk
25 SRPREPHDR: file = %O, start = $0000, size = $0004;
26 SRPREPCHNK: file = %O, define = yes, start = %S, size = $7C20 - %S - $07FF; # $07FF: space for temp. chargen buffer, 1K aligned
27 SRPREPTRL: file = %O, start = $0000, size = $0006;
29 # "main program" load chunk
30 MAINHDR: file = %O, start = $0000, size = $0004;
31 RAM: file = %O, define = yes, start = %S +
32 __LOWBSS_SIZE__, size = $D000 -
37 # defines entry point into program
38 TRAILER: file = %O, start = $0000, size = $0006;
40 # memory beneath the ROM preceeding the character generator
41 HIDDEN_RAM2: file = "", define = yes, start = $D800, size = $0800;
43 # address of relocated character generator (same addess as ROM version)
44 CHARGEN: file = "", define = yes, start = $E000, size = $0400;
46 # memory beneath the ROM
47 HIDDEN_RAM: file = "", define = yes, start = $E400, size = $FFFA - $E400;
51 EXEHDR: load = HEADER, type = ro;
53 SYSCHKHDR: load = SYSCHKHDR, type = ro, optional = yes;
54 SYSCHK: load = SYSCHKCHNK, type = rw, define = yes, optional = yes;
55 SYSCHKTRL: load = SYSCHKTRL, type = ro, optional = yes;
57 SRPREPHDR: load = SRPREPHDR, type = ro;
58 LOWBSS: load = SRPREPCHNK, type = bss, define = yes; # shared btw. SRPREPCHNK and RAM, not zero initialized
59 SRPREP: load = SRPREPCHNK, type = rw, define = yes;
60 SHADOW_RAM: load = SRPREPCHNK, run = HIDDEN_RAM, type = rw, define = yes, optional = yes;
61 SHADOW_RAM2: load = SRPREPCHNK, run = HIDDEN_RAM2, type = rw, define = yes, optional = yes;
62 SRPREPTRL: load = SRPREPTRL, type = ro;
64 MAINHDR: load = MAINHDR, type = ro;
65 STARTUP: load = RAM, type = ro, define = yes;
66 LOWCODE: load = RAM, type = ro, define = yes, optional = yes;
67 INIT: load = RAM, type = ro, optional = yes;
68 CODE: load = RAM, type = ro, define = yes;
69 RODATA: load = RAM, type = ro;
70 DATA: load = RAM, type = rw;
71 INITBSS: load = RAM, type = bss, optional = yes;
72 BSS: load = RAM, type = bss, define = yes;
73 ZEROPAGE: load = ZP, type = zp;
74 EXTZP: load = ZP, type = zp, optional = yes;
75 AUTOSTRT: load = TRAILER, type = ro;
78 CONDES: type = constructor,
79 label = __CONSTRUCTOR_TABLE__,
80 count = __CONSTRUCTOR_COUNT__,
82 CONDES: type = destructor,
83 label = __DESTRUCTOR_TABLE__,
84 count = __DESTRUCTOR_COUNT__,
86 CONDES: type = interruptor,
87 label = __INTERRUPTOR_TABLE__,
88 count = __INTERRUPTOR_COUNT__,