]> git.sur5r.net Git - cc65/blob - cfg/atarixl.cfg
Default atatixl.cfg file now leaves the character generator at $E000.
[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                                                     __SAVEAREA_SIZE__ +
32                                                     __LOWDATA_SIZE__, size = $D000 -
33                                                                              __STACKSIZE__ -
34                                                                              %S -
35                                                                              __SAVEAREA_SIZE__ -
36                                                                              __LOWDATA_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 = $FFF0 - $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     SAVEAREA:   load = SRPREPCHNK,                  type = bss, define = yes;  # shared btw. SRPREP and RAM
60     LOWDATA:    load = SRPREPCHNK,                  type = bss, define = yes;  #   "  "  "  "  "  "  "  "
61     SRPREP:     load = SRPREPCHNK,                  type = rw,  define = yes;
62     SHADOW_RAM:  load = SRPREPCHNK, run = HIDDEN_RAM,  type = rw,  define = yes, optional = yes;
63     SHADOW_RAM2: load = SRPREPCHNK, run = HIDDEN_RAM2, type = rw,  define = yes, optional = yes;
64     SRPREPTRL:  load = SRPREPTRL,                   type = ro;
65
66     MAINHDR:    load = MAINHDR,                     type = ro;
67     STARTUP:    load = RAM,                         type = ro,  define = yes;
68     LOWCODE:    load = RAM,                         type = ro,  define = yes, optional = yes;
69     INIT:       load = RAM,                         type = ro,                optional = yes;
70     CODE:       load = RAM,                         type = ro,  define = yes;
71     RODATA:     load = RAM,                         type = ro;
72     DATA:       load = RAM,                         type = rw;
73     BSS:        load = RAM,                         type = bss, define = yes;
74     ZEROPAGE:   load = ZP,                          type = zp;
75     EXTZP:      load = ZP,                          type = zp,                optional = yes;
76     AUTOSTRT:   load = TRAILER,                     type = ro;
77 }
78 FEATURES {
79     CONDES: type    = constructor,
80             label   = __CONSTRUCTOR_TABLE__,
81             count   = __CONSTRUCTOR_COUNT__,
82             segment = INIT;
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 }