]> git.sur5r.net Git - cc65/blob - cfg/atari.cfg
Merge pull request #56 from groessler/something_to_pull
[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     RAM:           file = %O, define = yes, start = %S,    size = $BC20 - __STACKSIZE__ - __RESERVED_MEMORY__ - %S;
26     TRAILER:       file = %O,               start = $0000, size = $0006;
27 }
28 SEGMENTS {
29     EXEHDR:    load = HEADER,     type = ro;
30     SYSCHKHDR: load = SYSCHKHDR,  type = ro,                optional = yes;
31     SYSCHK:    load = SYSCHKCHNK, type = rw,  define = yes, optional = yes;
32     SYSCHKTRL: load = SYSCHKTRL,  type = ro,                optional = yes;
33     MAINHDR:   load = MAINHDR,    type = ro;
34     STARTUP:   load = RAM,        type = ro,  define = yes;
35     LOWCODE:   load = RAM,        type = ro,  define = yes, optional = yes;
36     INIT:      load = RAM,        type = ro,                optional = yes;
37     CODE:      load = RAM,        type = ro,  define = yes;
38     RODATA:    load = RAM,        type = ro;
39     DATA:      load = RAM,        type = rw;
40     BSS:       load = RAM,        type = bss, define = yes;
41     ZEROPAGE:  load = ZP,         type = zp;
42     EXTZP:     load = ZP,         type = zp,                optional = yes;
43     AUTOSTRT:  load = TRAILER,    type = ro;
44 }
45 FEATURES {
46     CONDES: type    = constructor,
47             label   = __CONSTRUCTOR_TABLE__,
48             count   = __CONSTRUCTOR_COUNT__,
49             segment = INIT;
50     CONDES: type    = destructor,
51             label   = __DESTRUCTOR_TABLE__,
52             count   = __DESTRUCTOR_COUNT__,
53             segment = RODATA;
54     CONDES: type    = interruptor,
55             label   = __INTERRUPTOR_TABLE__,
56             count   = __INTERRUPTOR_COUNT__,
57             segment = RODATA,
58             import  = __CALLIRQ__;
59 }