]> git.sur5r.net Git - cc65/blob - cfg/atari-cart.cfg
Fixed _textcolor definition.
[cc65] / cfg / atari-cart.cfg
1 FEATURES {
2     STARTADDRESS: default = $2000;
3 }
4 SYMBOLS {
5     __CARTSIZE__:        type = weak,   value = $2000; # possible values: $2000 and $4000
6     __CART_HEADER__:     type = import;
7     __STACKSIZE__:       type = weak,   value = $0800; # 2k stack
8     __STARTADDRESS__:    type = export, value = %S;
9     __RESERVED_MEMORY__: type = export, value = $0000;
10     __CARTFLAGS__:       type = weak,   value = $01;   # see documentation for other possible values
11 }
12 MEMORY {
13     ZP:     file = "", define = yes, start = $0082,                size = $007E;
14     MAIN:   file = "", define = yes, start = %S,                   size = __CARTSIZE__;
15     ROM:    file = %O, define = yes, start = $C000 - __CARTSIZE__, size = __CARTSIZE__ - 6, fill = yes, fillval = $FF;
16     CARTID: file = %O,               start = $BFFA,                size = $0006;
17 }
18 SEGMENTS {
19     ZEROPAGE: load = ZP,              type = zp,                optional = yes;
20     EXTZP:    load = ZP,              type = zp,                optional = yes;
21     STARTUP:  load = ROM,             type = ro,  define = yes, optional = yes;
22     LOWBSS:   load = MAIN,            type = bss,               optional = yes;  # not zero initialized
23     LOWCODE:  load = ROM,             type = ro,  define = yes, optional = yes;
24     ONCE:     load = ROM,             type = ro,                optional = yes;
25     CODE:     load = ROM,             type = ro,  define = yes;
26     RODATA:   load = ROM,             type = ro,                optional = yes;
27     DATA:     load = ROM, run = MAIN, type = rw,  define = yes, optional = yes;
28     INIT:     load = MAIN,            type = bss,               optional = yes;
29     BSS:      load = MAIN,            type = bss, define = yes, optional = yes;
30     CARTHDR:  load = CARTID,          type = ro;
31 }
32 FEATURES {
33     CONDES: type    = constructor,
34             label   = __CONSTRUCTOR_TABLE__,
35             count   = __CONSTRUCTOR_COUNT__,
36             segment = ONCE;
37     CONDES: type    = destructor,
38             label   = __DESTRUCTOR_TABLE__,
39             count   = __DESTRUCTOR_COUNT__,
40             segment = RODATA;
41     CONDES: type    = interruptor,
42             label   = __INTERRUPTOR_TABLE__,
43             count   = __INTERRUPTOR_COUNT__,
44             segment = RODATA,
45             import  = __CALLIRQ__;
46 }