]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/apple2.cfg
Oliver Schmidt updated the graphics drivers and part of the C library for the
[cc65] / src / ld65 / cfg / apple2.cfg
1 FEATURES {
2     STARTADDRESS: default = $0803;
3 }
4 MEMORY {
5     ZP:     start = $0080, size = $001A,                 define = yes;
6     HEADER: start = $0000, size = $0004,      file = %O;
7     RAM:    start = %S,    size = $9600 - %S, file = %O, define = yes;
8     MOVE:   start = $0000, size = $FFFF,      file = %O, define = yes;
9     LC:     start = $D400, size = $0C00,                 define = yes;
10 }
11 SEGMENTS {
12     ZEROPAGE: load = ZP,              type = zp;
13     EXEHDR:   load = HEADER,          type = ro;
14     STARTUP:  load = RAM,             type = ro;
15     LOWCODE:  load = RAM,             type = ro;
16     CODE:     load = RAM,             type = ro;
17     RODATA:   load = RAM,             type = ro;
18     DATA:     load = RAM,             type = rw;
19     BSS:      load = RAM,             type = bss, define   = yes;
20     INIT:     load = MOVE, run = RAM, type = ro,  define   = yes;
21     HIGHCODE: load = MOVE, run = LC,  type = ro,  optional = yes;
22 }
23 FEATURES {
24     CONDES: segment = INIT,
25             type    = constructor,
26             label   = __CONSTRUCTOR_TABLE__,
27             count   = __CONSTRUCTOR_COUNT__;
28     CONDES: segment = RODATA,
29             type    = destructor,
30             label   = __DESTRUCTOR_TABLE__,
31             count   = __DESTRUCTOR_COUNT__;
32     CONDES: type    = interruptor,
33             segment = RODATA,
34             label   = __INTERRUPTOR_TABLE__,
35             count   = __INTERRUPTOR_COUNT__;
36 }
37 SYMBOLS {
38     __STACKSIZE__ = $0800; # 2k stack
39 }