]> git.sur5r.net Git - cc65/blob - cfg/atari-cassette.cfg
Merge pull request #85 from groessler/cassette
[cc65] / cfg / atari-cassette.cfg
1 FEATURES {
2     STARTADDRESS: default = $0900;
3 }
4 SYMBOLS {
5     __STACKSIZE__:       type = weak,   value = $0800; # 2k stack
6     __RESERVED_MEMORY__: type = weak,   value = $0000;
7     __STARTADDRESS__:    type = export, value = %S;
8     _cas_hdr:            type = import;
9 }
10 MEMORY {
11     ZP:            file = "", define = yes, start = $0082, size = $007E;
12     RAM:           file = %O, define = yes, start = %S,    size = $BC20 - __STACKSIZE__ - __RESERVED_MEMORY__ - %S;
13 }
14 SEGMENTS {
15     CASHDR:    load = RAM, type = ro;
16     STARTUP:   load = RAM, type = ro,  define = yes, optional = yes;
17     LOWCODE:   load = RAM, type = ro,  define = yes, optional = yes;
18     INIT:      load = RAM, type = ro,                optional = yes;
19     CODE:      load = RAM, type = ro,  define = yes;
20     RODATA:    load = RAM, type = ro,                optional = yes;
21     DATA:      load = RAM, type = rw,                optional = yes;
22     BSS:       load = RAM, type = bss, define = yes, optional = yes;
23     ZEROPAGE:  load = ZP,  type = zp,                optional = yes;
24     EXTZP:     load = ZP,  type = zp,                optional = yes;
25 }
26 FEATURES {
27     CONDES: type    = constructor,
28             label   = __CONSTRUCTOR_TABLE__,
29             count   = __CONSTRUCTOR_COUNT__,
30             segment = INIT;
31     CONDES: type    = destructor,
32             label   = __DESTRUCTOR_TABLE__,
33             count   = __DESTRUCTOR_COUNT__,
34             segment = RODATA;
35     CONDES: type    = interruptor,
36             label   = __INTERRUPTOR_TABLE__,
37             count   = __INTERRUPTOR_COUNT__,
38             segment = RODATA,
39             import  = __CALLIRQ__;
40 }