2 STARTADDRESS: default = $2400;
5 __EXEHDR__: type = import;
6 __SYSTEM_CHECK__: type = import; # force inclusion of "system check" load chunk
7 __AUTOSTART__: type = import; # force inclusion of autostart "trailer"
8 __STACKSIZE__: type = weak, value = $0800; # 2k stack
9 __STARTADDRESS__: type = export, value = %S;
12 ZP: file = "", define = yes, start = $0082, size = $007E;
15 HEADER: file = %O, start = $0000, size = $0002;
17 # "system check" load chunk
18 SYSCHKHDR: file = %O, start = $0000, size = $0004;
19 SYSCHKCHNK: file = %O, start = $2E00, size = $0300;
20 SYSCHKTRL: file = %O, start = $0000, size = $0006;
22 # "shadow RAM preparation" load chunk
23 SRPREPHDR: file = %O, start = $0000, size = $0004;
24 SRPREPCHNK: file = %O, define = yes, 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 MAIN: file = %O, define = yes, start = %S + __LOWBSS_SIZE__, size = $D000 - __STACKSIZE__ - %S - __LOWBSS_SIZE__;
31 # defines entry point into program
32 TRAILER: file = %O, start = $0000, size = $0006;
34 # memory beneath the ROM preceeding the character generator
35 HIDDEN_RAM2: file = "", define = yes, start = $D800, size = $0800;
37 # address of relocated character generator (same addess as ROM version)
38 CHARGEN: file = "", define = yes, start = $E000, size = $0400;
40 # memory beneath the ROM
41 HIDDEN_RAM: file = "", define = yes, start = $E400, size = $FFFA - $E400;
44 ZEROPAGE: load = ZP, type = zp;
45 EXTZP: load = ZP, type = zp, optional = yes;
47 EXEHDR: load = HEADER, type = ro;
49 SYSCHKHDR: load = SYSCHKHDR, type = ro, optional = yes;
50 SYSCHK: load = SYSCHKCHNK, type = rw, define = yes, optional = yes;
51 SYSCHKTRL: load = SYSCHKTRL, type = ro, optional = yes;
53 SRPREPHDR: load = SRPREPHDR, type = ro;
54 LOWBSS: load = SRPREPCHNK, type = bss, define = yes; # shared btw. SRPREPCHNK and RAM, not zero initialized
55 SRPREP: load = SRPREPCHNK, type = rw, define = yes;
56 SHADOW_RAM: load = SRPREPCHNK, run = HIDDEN_RAM, type = rw, define = yes, optional = yes;
57 SHADOW_RAM2: load = SRPREPCHNK, run = HIDDEN_RAM2, type = rw, define = yes, optional = yes;
58 SRPREPTRL: load = SRPREPTRL, type = ro;
60 MAINHDR: load = MAINHDR, type = ro;
61 STARTUP: load = MAIN, type = ro, define = yes;
62 LOWCODE: load = MAIN, type = ro, define = yes, optional = yes;
63 ONCE: load = MAIN, type = ro, optional = yes;
64 CODE: load = MAIN, type = ro, define = yes;
65 RODATA: load = MAIN, type = ro;
66 DATA: load = MAIN, type = rw;
67 INIT: load = MAIN, type = rw, optional = yes;
68 BSS: load = MAIN, type = bss, define = yes;
69 AUTOSTRT: load = TRAILER, type = ro;
72 CONDES: type = constructor,
73 label = __CONSTRUCTOR_TABLE__,
74 count = __CONSTRUCTOR_COUNT__,
76 CONDES: type = destructor,
77 label = __DESTRUCTOR_TABLE__,
78 count = __DESTRUCTOR_COUNT__,
80 CONDES: type = interruptor,
81 label = __INTERRUPTOR_TABLE__,
82 count = __INTERRUPTOR_COUNT__,