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