]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/apple2enh.cfg
Renamed segment 'HIGHCODE' to 'LC because:
[cc65] / src / ld65 / cfg / apple2enh.cfg
1 # Default configuration built into ld65 (allowing for 3KB of HIGHCODE)
2
3 FEATURES {
4     STARTADDRESS: default = $0803;
5 }
6 SYMBOLS {
7     __EXEHDR__:    type = import;
8     __LCADDR__:    type = weak, value = $D400; # Behind quit code
9     __LCSIZE__:    type = weak, value = $0C00; # Rest of bank two
10     __STACKSIZE__: type = weak, value = $0800; # 2k stack
11     __LOADADDR__:  type = weak, value = __RAM_START__;
12     __LOADSIZE__:  type = weak, value = __ZPSAVE_RUN__ - __RAM_START__ +
13                                         __MOVE_LAST__  - __MOVE_START__;
14 }
15 MEMORY {
16     ZP:     file = "", define = yes, start = $0080,      size = $001A;
17     HEADER: file = %O,               start = $0000,      size = $0004;
18     RAM:    file = %O, define = yes, start = %S,         size = $9600 - __STACKSIZE__ - %S;
19     MOVE:   file = %O, define = yes, start = $0000,      size = $FFFF;
20     LC:                define = yes, start = __LCADDR__, size = __LCSIZE__;
21 }
22 SEGMENTS {
23     ZEROPAGE: load = ZP,              type = zp;
24     EXEHDR:   load = HEADER,          type = ro;
25     STARTUP:  load = RAM,             type = ro;
26     LOWCODE:  load = RAM,             type = ro;
27     CODE:     load = RAM,             type = ro;
28     RODATA:   load = RAM,             type = ro;
29     DATA:     load = RAM,             type = rw;
30     ZPSAVE:   load = RAM,             type = bss, define   = yes;
31     BSS:      load = RAM,             type = bss, define   = yes;
32     INIT:     load = MOVE, run = RAM, type = ro,  define   = yes;
33     LC:       load = MOVE, run = LC,  type = ro,  optional = yes;
34 }
35 FEATURES {
36     CONDES: segment = INIT,
37             type    = constructor,
38             label   = __CONSTRUCTOR_TABLE__,
39             count   = __CONSTRUCTOR_COUNT__;
40     CONDES: segment = RODATA,
41             type    = destructor,
42             label   = __DESTRUCTOR_TABLE__,
43             count   = __DESTRUCTOR_COUNT__;
44     CONDES: segment = RODATA,
45             type    = interruptor,
46             label   = __INTERRUPTOR_TABLE__,
47             count   = __INTERRUPTOR_COUNT__;
48 }