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