]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/apple2enh-system.cfg
Better handling of imports in the ExprNode structure.
[cc65] / src / ld65 / cfg / apple2enh-system.cfg
1 # Configuration for ProDOS 8 system programs (without the header)
2
3 SYMBOLS {
4     __STACKSIZE__: value = $0800, weak = yes; # 2k stack
5 }
6 MEMORY {
7     ZP:                define = yes, start = $0080, size = $001A;
8     HEADER: file = "",               start = $0000, size = $0004;
9     RAM:    file = %O, define = yes, start = $2000, size = $9F00 - __STACKSIZE__;
10     MOVE:   file = %O, define = yes, start = $0000, size = $FFFF;
11     LC:                define = yes, start = $D400, size = $0C00;
12 }
13 SEGMENTS {
14     ZEROPAGE: load = ZP,              type = zp;
15     EXEHDR:   load = HEADER,          type = ro;
16     STARTUP:  load = RAM,             type = ro;
17     LOWCODE:  load = RAM,             type = ro;
18     CODE:     load = RAM,             type = ro;
19     RODATA:   load = RAM,             type = ro;
20     DATA:     load = RAM,             type = rw;
21     ZPSAVE:   load = RAM,             type = bss, define   = yes;
22     BSS:      load = RAM,             type = bss, define   = yes;
23     INIT:     load = MOVE, run = RAM, type = ro,  define   = yes;
24     HIGHCODE: load = MOVE, run = LC,  type = ro,  optional = yes;
25 }
26 FEATURES {
27     CONDES: segment = INIT,
28             type    = constructor,
29             label   = __CONSTRUCTOR_TABLE__,
30             count   = __CONSTRUCTOR_COUNT__;
31     CONDES: segment = RODATA,
32             type    = destructor,
33             label   = __DESTRUCTOR_TABLE__,
34             count   = __DESTRUCTOR_COUNT__;
35     CONDES: segment = RODATA,
36             type    = interruptor,
37             label   = __INTERRUPTOR_TABLE__,
38             count   = __INTERRUPTOR_COUNT__;
39 }