]> 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 + __SAVEAREA_SIZE__ + __ZPSAVE_SIZE__, size = $D000 - __STACKSIZE__ - %S - __SAVEAREA_SIZE__ - __ZPSAVE_SIZE__;
30
31 # address of relocated character generator
32     CHARGEN:       file = "", define = yes, start = $D800, size = $0400;
33
34 # memory beneath the ROM
35     RAM_BELOW_ROM: file = "",               start = $DC00, size = $FFF0 - $DC00;
36
37 # defines entry point into program
38     TRAILER:       file = %O,               start = $0000, size = $0006;
39 }
40
41 SEGMENTS {
42     EXEHDR:     load = HEADER,                      type = ro;
43
44     SYSCHKHDR:  load = SYSCHKHDR,                   type = ro,                optional = yes;
45     SYSCHK:     load = SYSCHK,                      type = rw,  define = yes, optional = yes;
46
47     SRPREPHDR:  load = SRPREPHDR,                   type = ro;
48     SAVEAREA:   load = SRPREP,                      type = bss, define = yes;  # shared btw. SRPREP and RAM
49     ZPSAVE:     load = SRPREP,                      type = bss, define = yes;
50     SRPREP:     load = SRPREP,                      type = rw,  define = yes;
51     SHADOW_RAM: load = SRPREP, run = RAM_BELOW_ROM, type = rw,  define = yes, optional = yes;
52     SRPREPTRL:  load = SRPREPTRL,                   type = ro;
53
54     MAINHDR:    load = MAINHDR,                     type = ro;
55     STARTUP:    load = RAM,                         type = ro,  define = yes;
56     LOWCODE:    load = RAM,                         type = ro,  define = yes, optional = yes;
57     INIT:       load = RAM,                         type = ro,                optional = yes;
58     CODE:       load = RAM,                         type = ro,  define = yes;
59     RODATA:     load = RAM,                         type = ro;
60     DATA:       load = RAM,                         type = rw;
61     BSS:        load = RAM,                         type = bss, define = yes;
62     ZEROPAGE:   load = ZP,                          type = zp;
63     EXTZP:      load = ZP,                          type = zp,                optional = yes;
64     AUTOSTRT:   load = TRAILER,                     type = ro;
65 }
66 FEATURES {
67     CONDES: type    = constructor,
68             label   = __CONSTRUCTOR_TABLE__,
69             count   = __CONSTRUCTOR_COUNT__,
70             segment = INIT;
71     CONDES: type    = destructor,
72             label   = __DESTRUCTOR_TABLE__,
73             count   = __DESTRUCTOR_COUNT__,
74             segment = RODATA;
75     CONDES: type    = interruptor,
76             label   = __INTERRUPTOR_TABLE__,
77             count   = __INTERRUPTOR_COUNT__,
78             segment = RODATA,
79             import  = __CALLIRQ__;
80 }