]> git.sur5r.net Git - cc65/blob - cfg/atarixl.cfg
Merge remote-tracking branch 'upstream/master'
[cc65] / cfg / atarixl.cfg
1 FEATURES {
2     STARTADDRESS: default = $2E00;
3 }
4
5 SYMBOLS {
6     __STACKSIZE__:       type = weak, value = $0800; # 2k stack
7     __RESERVED_MEMORY__: type = weak, value = $0000;
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     SYSCHK:        file = %O,               start = $2E00,                  size = $0E00;
21
22 # "shadow RAM preparation" load chunk
23     SRPREPHDR:     file = %O,               start = $0000,                  size = $0004;
24     SRPREP:        file = %O,               start = %S,                     size = $7C20 - %S - $04FF;  # $04FF: space for temp. chargen buffer, page aligned
25     SRPREPTRL:     file = %O,               start = $0000,                  size = $0006;
26
27 # "main program" load chunk
28     MAINHDR:       file = %O,               start = $0000,                  size = $0004;
29     RAM:           file = %O, define = yes, start = %S +
30                                                     __SAVEAREA_SIZE__ +
31                                                     __LOWBUFS_SIZE__, size = $D000 -
32                                                                              __STACKSIZE__ -
33                                                                              %S -
34                                                                              __SAVEAREA_SIZE__ -
35                                                                              __LOWBUFS_SIZE__;
36
37 # address of relocated character generator
38     CHARGEN:       file = "", define = yes, start = $D800, size = $0400;
39
40 # memory beneath the ROM
41     RAM_BELOW_ROM: file = "",               start = $DC00, size = $FFF0 - $DC00;
42
43 # defines entry point into program
44     TRAILER:       file = %O,               start = $0000, size = $0006;
45 }
46
47 SEGMENTS {
48     EXEHDR:     load = HEADER,                      type = ro;
49
50     SYSCHKHDR:  load = SYSCHKHDR,                   type = ro,                optional = yes;
51     SYSCHK:     load = SYSCHK,                      type = rw,  define = yes, optional = yes;
52
53     SRPREPHDR:  load = SRPREPHDR,                   type = ro;
54     SAVEAREA:   load = SRPREP,                      type = bss, define = yes;  # shared btw. SRPREP and RAM
55     LOWBUFS:    load = SRPREP,                      type = bss, define = yes;
56     SRPREP:     load = SRPREP,                      type = rw,  define = yes;
57     SHADOW_RAM: load = SRPREP, run = RAM_BELOW_ROM, type = rw,  define = yes, optional = yes;
58     SRPREPTRL:  load = SRPREPTRL,                   type = ro;
59
60     MAINHDR:    load = MAINHDR,                     type = ro;
61     STARTUP:    load = RAM,                         type = ro,  define = yes;
62     LOWCODE:    load = RAM,                         type = ro,  define = yes, optional = yes;
63     INIT:       load = RAM,                         type = ro,                optional = yes;
64     CODE:       load = RAM,                         type = ro,  define = yes;
65     RODATA:     load = RAM,                         type = ro;
66     DATA:       load = RAM,                         type = rw;
67     BSS:        load = RAM,                         type = bss, define = yes;
68     ZEROPAGE:   load = ZP,                          type = zp;
69     EXTZP:      load = ZP,                          type = zp,                optional = yes;
70     AUTOSTRT:   load = TRAILER,                     type = ro;
71 }
72 FEATURES {
73     CONDES: type    = constructor,
74             label   = __CONSTRUCTOR_TABLE__,
75             count   = __CONSTRUCTOR_COUNT__,
76             segment = INIT;
77     CONDES: type    = destructor,
78             label   = __DESTRUCTOR_TABLE__,
79             count   = __DESTRUCTOR_COUNT__,
80             segment = RODATA;
81     CONDES: type    = interruptor,
82             label   = __INTERRUPTOR_TABLE__,
83             count   = __INTERRUPTOR_COUNT__,
84             segment = RODATA,
85             import  = __CALLIRQ__;
86 }