]> git.sur5r.net Git - cc65/blob - cfg/atarixl.cfg
9573fc78cbdc8920aa40cbc3e7ff073ac5722b62
[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     MAIN:        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     ZEROPAGE:    load = ZP,                            type = zp;
52     EXTZP:       load = ZP,                            type = zp,                optional = yes;
53
54     EXEHDR:      load = HEADER,                        type = ro;
55
56     SYSCHKHDR:   load = SYSCHKHDR,                     type = ro,                optional = yes;
57     SYSCHK:      load = SYSCHKCHNK,                    type = rw,  define = yes, optional = yes;
58     SYSCHKTRL:   load = SYSCHKTRL,                     type = ro,                optional = yes;
59
60     SRPREPHDR:   load = SRPREPHDR,                     type = ro;
61     LOWBSS:      load = SRPREPCHNK,                    type = bss, define = yes;  # shared btw. SRPREPCHNK and RAM, not zero initialized
62     SRPREP:      load = SRPREPCHNK,                    type = rw,  define = yes;
63     SHADOW_RAM:  load = SRPREPCHNK, run = HIDDEN_RAM,  type = rw,  define = yes, optional = yes;
64     SHADOW_RAM2: load = SRPREPCHNK, run = HIDDEN_RAM2, type = rw,  define = yes, optional = yes;
65     SRPREPTRL:   load = SRPREPTRL,                     type = ro;
66
67     MAINHDR:     load = MAINHDR,                       type = ro;
68     STARTUP:     load = MAIN,                          type = ro,  define = yes;
69     LOWCODE:     load = MAIN,                          type = ro,  define = yes, optional = yes;
70     ONCE:        load = MAIN,                          type = ro,                optional = yes;
71     CODE:        load = MAIN,                          type = ro,  define = yes;
72     RODATA:      load = MAIN,                          type = ro;
73     DATA:        load = MAIN,                          type = rw;
74     INIT:        load = MAIN,                          type = bss,               optional = yes;
75     BSS:         load = MAIN,                          type = bss, define = yes;
76     AUTOSTRT:    load = TRAILER,                       type = ro;
77 }
78 FEATURES {
79     CONDES: type    = constructor,
80             label   = __CONSTRUCTOR_TABLE__,
81             count   = __CONSTRUCTOR_COUNT__,
82             segment = ONCE;
83     CONDES: type    = destructor,
84             label   = __DESTRUCTOR_TABLE__,
85             count   = __DESTRUCTOR_COUNT__,
86             segment = RODATA;
87     CONDES: type    = interruptor,
88             label   = __INTERRUPTOR_TABLE__,
89             count   = __INTERRUPTOR_COUNT__,
90             segment = RODATA,
91             import  = __CALLIRQ__;
92 }