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