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