]> git.sur5r.net Git - cc65/blob - cfg/atari.cfg
Enable "system check" load chunk for non-XL Atari target.
[cc65] / cfg / atari.cfg
1 FEATURES {
2     STARTADDRESS: default = $2E00;
3 }
4 SYMBOLS {
5     __STACKSIZE__:       type = weak, value = $0800; # 2k stack
6     __STARTADDRESS__:    type = export, value = %S;
7     __RESERVED_MEMORY__: type = weak, value = $0000;
8     syschk:              type = import;  # force inclusion of SYSCHK
9 }
10 MEMORY {
11     ZP:            file = "", define = yes, start = $0082, size = $007E;
12
13 # file header, just $FFFF
14     HEADER:        file = %O,               start = $0000, size = $0002;
15
16 # "system check" load chunk
17     SYSCHKHDR:     file = %O,               start = $0000, size = $0004;
18     SYSCHKCHNK:    file = %O,               start = $2E00, size = $0300;
19     SYSCHKTRL:     file = %O,               start = $0000, size = $0006;
20
21 # "main program" load chunk
22     MAINHDR:       file = %O,               start = $0000, size = $0004;
23     RAM:           file = %O, define = yes, start = %S,    size = $BC20 - __STACKSIZE__ - __RESERVED_MEMORY__ - %S;
24     TRAILER:       file = %O,               start = $0000, size = $0006;
25 }
26 SEGMENTS {
27     EXEHDR:    load = HEADER,     type = ro;
28     SYSCHKHDR: load = SYSCHKHDR,  type = ro,                optional = yes;
29     SYSCHK:    load = SYSCHKCHNK, type = rw,  define = yes, optional = yes;
30     SYSCHKTRL: load = SYSCHKTRL,  type = ro,                optional = yes;
31     MAINHDR:   load = MAINHDR,    type = ro;
32     STARTUP:   load = RAM,        type = ro,  define = yes;
33     LOWCODE:   load = RAM,        type = ro,  define = yes, optional = yes;
34     INIT:      load = RAM,        type = ro,                optional = yes;
35     CODE:      load = RAM,        type = ro,  define = yes;
36     RODATA:    load = RAM,        type = ro;
37     DATA:      load = RAM,        type = rw;
38     BSS:       load = RAM,        type = bss, define = yes;
39     ZEROPAGE:  load = ZP,         type = zp;
40     EXTZP:     load = ZP,         type = zp,                optional = yes;
41     AUTOSTRT:  load = TRAILER,    type = ro;
42 }
43 FEATURES {
44     CONDES: type    = constructor,
45             label   = __CONSTRUCTOR_TABLE__,
46             count   = __CONSTRUCTOR_COUNT__,
47             segment = INIT;
48     CONDES: type    = destructor,
49             label   = __DESTRUCTOR_TABLE__,
50             count   = __DESTRUCTOR_COUNT__,
51             segment = RODATA;
52     CONDES: type    = interruptor,
53             label   = __INTERRUPTOR_TABLE__,
54             count   = __INTERRUPTOR_COUNT__,
55             segment = RODATA,
56             import  = __CALLIRQ__;
57 }