]> git.sur5r.net Git - cc65/blob - cfg/atari.cfg
Fixed gcc compiler warning (#867)
[cc65] / cfg / atari.cfg
1 FEATURES {
2     STARTADDRESS: default = $2000;
3 }
4 SYMBOLS {
5     __EXEHDR__:          type = import;
6     __SYSTEM_CHECK__:    type = import;  # force inclusion of "system check" load chunk
7     __AUTOSTART__:       type = import;  # force inclusion of autostart "trailer"
8     __STACKSIZE__:       type = weak, value = $0800; # 2k stack
9     __STARTADDRESS__:    type = export, value = %S;
10     __RESERVED_MEMORY__: type = weak, value = $0000;
11 }
12 MEMORY {
13     ZP:         file = "", define = yes, start = $0082, size = $007E;
14
15 # file header, 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 # "main program" load chunk
24     MAINHDR:    file = %O,               start = $0000, size = $0004;
25     MAIN:       file = %O, define = yes, start = %S,    size = $BC20 - __STACKSIZE__ - __RESERVED_MEMORY__ - %S;
26     TRAILER:    file = %O,               start = $0000, size = $0006;
27 }
28 SEGMENTS {
29     ZEROPAGE:  load = ZP,         type = zp;
30     EXTZP:     load = ZP,         type = zp,                optional = yes;
31     EXEHDR:    load = HEADER,     type = ro;
32     SYSCHKHDR: load = SYSCHKHDR,  type = ro,                optional = yes;
33     SYSCHK:    load = SYSCHKCHNK, type = rw,  define = yes, optional = yes;
34     SYSCHKTRL: load = SYSCHKTRL,  type = ro,                optional = yes;
35     MAINHDR:   load = MAINHDR,    type = ro;
36     STARTUP:   load = MAIN,       type = ro,  define = yes;
37     LOWBSS:    load = MAIN,       type = rw,                optional = yes;  # not zero initialized
38     LOWCODE:   load = MAIN,       type = ro,  define = yes, optional = yes;
39     ONCE:      load = MAIN,       type = ro,                optional = yes;
40     CODE:      load = MAIN,       type = ro,  define = yes;
41     RODATA:    load = MAIN,       type = ro;
42     DATA:      load = MAIN,       type = rw;
43     INIT:      load = MAIN,       type = rw,                optional = yes;
44     BSS:       load = MAIN,       type = bss, define = yes;
45     AUTOSTRT:  load = TRAILER,    type = ro;
46 }
47 FEATURES {
48     CONDES: type    = constructor,
49             label   = __CONSTRUCTOR_TABLE__,
50             count   = __CONSTRUCTOR_COUNT__,
51             segment = ONCE;
52     CONDES: type    = destructor,
53             label   = __DESTRUCTOR_TABLE__,
54             count   = __DESTRUCTOR_COUNT__,
55             segment = RODATA;
56     CONDES: type    = interruptor,
57             label   = __INTERRUPTOR_TABLE__,
58             count   = __INTERRUPTOR_COUNT__,
59             segment = RODATA,
60             import  = __CALLIRQ__;
61 }