1 # This config file provides a single big upper memory block (HIDDEN_RAM).
2 # To achieve this, it relocates the character generator from $E000 to CHARGEN.
3 # The runtime library must be compiled with CHARGEN_RELOC for this config
4 # file to work. See libsrc/atari/Makefile.inc.
7 STARTADDRESS: default = $2400;
11 __EXEHDR__: type = import;
12 __SYSTEM_CHECK__: type = import; # force inclusion of "system check" load chunk
13 __MAINCHNKHDR__: type = import;
14 __AUTOSTART__: type = import; # force inclusion of autostart "trailer"
15 __STACKSIZE__: type = weak, value = $0800; # 2k stack
16 __STARTADDRESS__: type = export, value = %S;
17 sramprep: type = import; # force inclusion of SRPREP
21 ZP: file = "", define = yes, start = $0082, size = $007E;
24 HEADER: file = %O, start = $0000, size = $0002;
26 # "system check" load chunk
27 SYSCHKHDR: file = %O, start = $0000, size = $0004;
28 SYSCHKCHNK: file = %O, start = $2E00, size = $0300;
29 SYSCHKTRL: file = %O, start = $0000, size = $0006;
31 # "shadow RAM preparation" load chunk
32 SRPREPHDR: file = %O, start = $0000, size = $0004;
33 SRPREPCHNK: file = %O, define = yes, start = %S, size = $7C20 - %S - $07FF; # $07FF: space for temp. chargen buffer, 1K aligned
34 SRPREPTRL: file = %O, start = $0000, size = $0006;
36 # "main program" load chunk
37 MAINHDR: file = %O, start = $0000, size = $0004;
38 RAM: file = %O, define = yes, start = %S +
39 __LOWBSS_SIZE__, size = $D000 -
44 # defines entry point into program
45 TRAILER: file = %O, start = $0000, size = $0006;
47 # address of relocated character generator
48 CHARGEN: file = "", define = yes, start = $D800, size = $0400;
50 # memory beneath the ROM
51 HIDDEN_RAM: file = "", define = yes, start = $DC00, size = $FFFA - $DC00;
55 EXEHDR: load = HEADER, type = ro;
57 SYSCHKHDR: load = SYSCHKHDR, type = ro, optional = yes;
58 SYSCHK: load = SYSCHKCHNK, type = rw, define = yes, optional = yes;
59 SYSCHKTRL: load = SYSCHKTRL, type = ro, optional = yes;
61 SRPREPHDR: load = SRPREPHDR, type = ro;
62 LOWBSS: load = SRPREPCHNK, type = bss, define = yes; # shared btw. SRPREPCHNK and RAM, not zero initialized
63 SRPREP: load = SRPREPCHNK, type = rw, define = yes;
64 SHADOW_RAM: load = SRPREPCHNK, run = HIDDEN_RAM, type = rw, define = yes, optional = yes;
65 SHADOW_RAM2: load = SRPREPCHNK, run = HIDDEN_RAM, type = rw, define = yes, optional = yes;
66 SRPREPTRL: load = SRPREPTRL, type = ro;
68 MAINHDR: load = MAINHDR, type = ro;
69 STARTUP: load = RAM, type = ro, define = yes;
70 LOWCODE: load = RAM, type = ro, define = yes, optional = yes;
71 INIT: load = RAM, type = ro, optional = yes;
72 CODE: load = RAM, type = ro, define = yes;
73 RODATA: load = RAM, type = ro;
74 DATA: load = RAM, type = rw;
75 BSS: load = RAM, type = bss, define = yes;
76 ZEROPAGE: load = ZP, type = zp;
77 EXTZP: load = ZP, type = zp, optional = yes;
78 AUTOSTRT: load = TRAILER, type = ro;
81 CONDES: type = constructor,
82 label = __CONSTRUCTOR_TABLE__,
83 count = __CONSTRUCTOR_COUNT__,
85 CONDES: type = destructor,
86 label = __DESTRUCTOR_TABLE__,
87 count = __DESTRUCTOR_COUNT__,
89 CONDES: type = interruptor,
90 label = __INTERRUPTOR_TABLE__,
91 count = __INTERRUPTOR_COUNT__,