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