]> git.sur5r.net Git - cc65/blob - cfg/atarixl-largehimem.cfg
Add comment describing the need to have the runtime library compiled
[cc65] / cfg / atarixl-largehimem.cfg
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.
5
6 FEATURES {
7     STARTADDRESS: default = $2400;
8 }
9
10 SYMBOLS {
11     __STACKSIZE__:       type = weak, value = $0800; # 2k stack
12     __STARTADDRESS__:    type = export, value = %S;
13     syschk:              type = import;  # force inclusion of SYSCHK
14     sramprep:            type = import;  # force inclusion of SRPREP
15 }
16
17 MEMORY {
18     ZP:            file = "", define = yes, start = $0082,                  size = $007E;
19
20 # just $FFFF
21     HEADER:        file = %O,               start = $0000,                  size = $0002;
22
23 # "system check" load chunk
24     SYSCHKHDR:     file = %O,               start = $0000,                  size = $0004;
25     SYSCHKCHNK:    file = %O,               start = $2E00,                  size = $0300;
26     SYSCHKTRL:     file = %O,               start = $0000,                  size = $0006;
27
28 # "shadow RAM preparation" load chunk
29     SRPREPHDR:     file = %O,               start = $0000,                  size = $0004;
30     SRPREPCHNK:    file = %O, define = yes, start = %S,                     size = $7C20 - %S - $07FF;  # $07FF: space for temp. chargen buffer, 1K aligned
31     SRPREPTRL:     file = %O,               start = $0000,                  size = $0006;
32
33 # "main program" load chunk
34     MAINHDR:       file = %O,               start = $0000,                  size = $0004;
35     RAM:           file = %O, define = yes, start = %S +
36                                                     __LOWDATA_SIZE__,       size = $D000 -
37                                                                                    __STACKSIZE__ -
38                                                                                    %S -
39                                                                                    __LOWDATA_SIZE__;
40
41 # defines entry point into program
42     TRAILER:       file = %O,               start = $0000, size = $0006;
43
44 # address of relocated character generator
45     CHARGEN:       file = "", define = yes, start = $D800, size = $0400;
46
47 # memory beneath the ROM
48     HIDDEN_RAM:    file = "", define = yes, start = $DC00, size = $FFF0 - $DC00;
49 }
50
51 SEGMENTS {
52     EXEHDR:     load = HEADER,                      type = ro;
53
54     SYSCHKHDR:  load = SYSCHKHDR,                   type = ro,                optional = yes;
55     SYSCHK:     load = SYSCHKCHNK,                  type = rw,  define = yes, optional = yes;
56     SYSCHKTRL:  load = SYSCHKTRL,                   type = ro,                optional = yes;
57
58     SRPREPHDR:  load = SRPREPHDR,                   type = ro;
59     LOWDATA:    load = SRPREPCHNK,                  type = bss, define = yes;  # shared btw. SRPREP and RAM
60     SRPREP:     load = SRPREPCHNK,                  type = rw,  define = yes;
61     SHADOW_RAM:  load = SRPREPCHNK, run = HIDDEN_RAM, type = rw,  define = yes, optional = yes;
62     SHADOW_RAM2: load = SRPREPCHNK, run = HIDDEN_RAM, type = rw,  define = yes, optional = yes;
63     SRPREPTRL:  load = SRPREPTRL,                   type = ro;
64
65     MAINHDR:    load = MAINHDR,                     type = ro;
66     STARTUP:    load = RAM,                         type = ro,  define = yes;
67     LOWCODE:    load = RAM,                         type = ro,  define = yes, optional = yes;
68     INIT:       load = RAM,                         type = ro,                optional = yes;
69     CODE:       load = RAM,                         type = ro,  define = yes;
70     RODATA:     load = RAM,                         type = ro;
71     DATA:       load = RAM,                         type = rw;
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;
76 }
77 FEATURES {
78     CONDES: type    = constructor,
79             label   = __CONSTRUCTOR_TABLE__,
80             count   = __CONSTRUCTOR_COUNT__,
81             segment = INIT;
82     CONDES: type    = destructor,
83             label   = __DESTRUCTOR_TABLE__,
84             count   = __DESTRUCTOR_COUNT__,
85             segment = RODATA;
86     CONDES: type    = interruptor,
87             label   = __INTERRUPTOR_TABLE__,
88             count   = __INTERRUPTOR_COUNT__,
89             segment = RODATA,
90             import  = __CALLIRQ__;
91 }