]> git.sur5r.net Git - cc65/blob - cfg/apple2enh-system.cfg
Merge pull request #577 from polluks/master
[cc65] / cfg / apple2enh-system.cfg
1 # Configuration for ProDOS 8 system programs (without the header)
2
3 SYMBOLS {
4     __STACKSIZE__: type = weak, value = $0800; # 2k stack
5     __LCADDR__:    type = weak, value = $D400; # Behind quit code
6     __LCSIZE__:    type = weak, value = $0C00; # Rest of bank two
7 }
8 MEMORY {
9     ZP:   file = "", define = yes, start = $0080,        size = $001A;
10     MAIN: file = %O,               start = $2000,        size = $BF00 - $2000;
11     BSS:  file = "",               start = __ONCE_RUN__, size = $BF00 - __STACKSIZE__ - __ONCE_RUN__;
12     LC:   file = "", define = yes, start = __LCADDR__,   size = __LCSIZE__;
13 }
14 SEGMENTS {
15     ZEROPAGE: load = ZP,             type = zp;
16     STARTUP:  load = MAIN,           type = ro;
17     LOWCODE:  load = MAIN,           type = ro,  optional = yes;
18     CODE:     load = MAIN,           type = ro;
19     RODATA:   load = MAIN,           type = ro;
20     DATA:     load = MAIN,           type = rw;
21     INIT:     load = MAIN,           type = rw;
22     ONCE:     load = MAIN,           type = ro,  define   = yes;
23     LC:       load = MAIN, run = LC, type = ro,  optional = yes;
24     BSS:      load = BSS,            type = bss, define   = yes;
25 }
26 FEATURES {
27     CONDES: type    = constructor,
28             label   = __CONSTRUCTOR_TABLE__,
29             count   = __CONSTRUCTOR_COUNT__,
30             segment = ONCE;
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 }