]> git.sur5r.net Git - cc65/blob - cfg/atarixl.cfg
f2cf20bc63eaa047758f5d19334e6a5e283dbb2d
[cc65] / cfg / atarixl.cfg
1 FEATURES {
2     STARTADDRESS: default = $2400;
3 }
4
5 SYMBOLS {
6     __EXEHDR__:          type = import;
7     __SYSTEM_CHECK__:    type = import;  # force inclusion of "system check" load chunk
8     __AUTOSTART__:       type = import;  # force inclusion of autostart "trailer"
9     __STACKSIZE__:       type = weak, value = $0800; # 2k stack
10     __STARTADDRESS__:    type = export, value = %S;
11     sramprep:            type = import;  # force inclusion of SRPREP
12 }
13
14 MEMORY {
15     ZP:            file = "", define = yes, start = $0082,                  size = $007E;
16
17 # just $FFFF
18     HEADER:        file = %O,               start = $0000,                  size = $0002;
19
20 # "system check" load chunk
21     SYSCHKHDR:     file = %O,               start = $0000,                  size = $0004;
22     SYSCHKCHNK:    file = %O,               start = $2E00,                  size = $0300;
23     SYSCHKTRL:     file = %O,               start = $0000,                  size = $0006;
24
25 # "shadow RAM preparation" load chunk
26     SRPREPHDR:     file = %O,               start = $0000,                  size = $0004;
27     SRPREPCHNK:    file = %O, define = yes, start = %S,                     size = $7C20 - %S - $07FF;  # $07FF: space for temp. chargen buffer, 1K aligned
28     SRPREPTRL:     file = %O,               start = $0000,                  size = $0006;
29
30 # "main program" load chunk
31     MAINHDR:       file = %O,               start = $0000,                  size = $0004;
32     RAM:           file = %O, define = yes, start = %S +
33                                                     __LOWBSS_SIZE__,        size = $D000 -
34                                                                                    __STACKSIZE__ -
35                                                                                    %S -
36                                                                                    __LOWBSS_SIZE__;
37
38 # defines entry point into program
39     TRAILER:       file = %O,               start = $0000, size = $0006;
40
41 # memory beneath the ROM preceeding the character generator
42     HIDDEN_RAM2:   file = "", define = yes, start = $D800, size = $0800;
43
44 # address of relocated character generator (same addess as ROM version)
45     CHARGEN:       file = "", define = yes, start = $E000, size = $0400;
46
47 # memory beneath the ROM
48     HIDDEN_RAM:    file = "", define = yes, start = $E400, size = $FFFA - $E400;
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     LOWBSS:      load = SRPREPCHNK,                    type = bss, define = yes;  # shared btw. SRPREPCHNK and RAM, not zero initialized
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_RAM2, 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 }