]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/cbm510.cfg
Added the new INIT segment to all configs and adjusted formatting.
[cc65] / src / ld65 / cfg / cbm510.cfg
1 MEMORY {
2     BASICHDR: start = $0001, size = $0050, fill = yes, fillval = 0, type = rw, file = %O;
3     ZP:       start = $0051, size = $00A6, fill = yes, fillval = 0, type = rw, file = %O, define = yes;
4     STARTUP:  start = $00F7, size = $0109, fill = yes, fillval = 0, file = %O;
5     PAGE2:    start = $0200, size = $0100, fill = yes, fillval = 0, file = %O;
6     PAGE3:    start = $0300, size = $0100, fill = yes, fillval = 0, file = %O;
7     RAM:      start = $0400, size = $DC00, file = %O;
8     CHARRAM:  start = $E000, size = $1000, define = yes, file = "";
9     VIDRAM:   start = $F000, size = $0400, define = yes, file = "";
10 }
11 SEGMENTS {
12     BASICHDR: load = BASICHDR, type = rw;
13     STARTUP:  load = STARTUP,  type = rw;
14     PAGE2:    load = PAGE2,    type = rw;
15     PAGE3:    load = PAGE3,    type = rw;
16     LOWCODE:  load = RAM,      type = ro,               optional = yes;
17     INIT:     load = RAM,      type = ro, define = yes, optional = yes;
18     CODE:     load = RAM,      type = ro;
19     RODATA:   load = RAM,      type = ro;
20     DATA:     load = RAM,      type = rw;
21     BSS:      load = RAM,      type = bss, define = yes;
22     ZEROPAGE: load = ZP,       type = zp;
23     EXTZP:    load = ZP,       type = rw,  define = yes;
24 }
25 FEATURES {
26     CONDES: segment = RODATA,
27             type = constructor,
28             label = __CONSTRUCTOR_TABLE__,
29             count = __CONSTRUCTOR_COUNT__;
30     CONDES: segment = RODATA,
31             type = destructor,
32             label = __DESTRUCTOR_TABLE__,
33             count = __DESTRUCTOR_COUNT__;
34     CONDES: segment = RODATA,
35             type = interruptor,
36             label = __INTERRUPTOR_TABLE__,
37             count = __INTERRUPTOR_COUNT__;
38 }
39 SYMBOLS {
40     __STACKSIZE__ = $781;       # ~2K stack
41 }