]> git.sur5r.net Git - cc65/blob - cfg/atari.cfg
Merge pull request #1 from cc65/master
[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     INITBSS:   load = RAM,        type = bss,               optional = yes;
41     BSS:       load = RAM,        type = bss, define = yes;
42     ZEROPAGE:  load = ZP,         type = zp;
43     EXTZP:     load = ZP,         type = zp,                optional = yes;
44     AUTOSTRT:  load = TRAILER,    type = ro;
45 }
46 FEATURES {
47     CONDES: type    = constructor,
48             label   = __CONSTRUCTOR_TABLE__,
49             count   = __CONSTRUCTOR_COUNT__,
50             segment = INIT;
51     CONDES: type    = destructor,
52             label   = __DESTRUCTOR_TABLE__,
53             count   = __DESTRUCTOR_COUNT__,
54             segment = RODATA;
55     CONDES: type    = interruptor,
56             label   = __INTERRUPTOR_TABLE__,
57             count   = __INTERRUPTOR_COUNT__,
58             segment = RODATA,
59             import  = __CALLIRQ__;
60 }