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