]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/cbm610.cfg
Added the new INIT segment to all configs and adjusted formatting.
[cc65] / src / ld65 / cfg / cbm610.cfg
1 MEMORY {
2     BASICHDR: start = $0001, size = $0050, type = rw, fill = yes, fillval = 0, file = %O;
3     ZP:       start = $0051, size = $00AD, type = rw, define = yes, fill = yes, fillval = 0, file = %O;
4     STARTUP:  start = $00FE, size = $0102, 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 = $FAAE, file = %O;
8 }
9 SEGMENTS {
10     BASICHDR: load = BASICHDR, type = rw;
11     STARTUP:  load = STARTUP,  type = rw;
12     PAGE2:    load = PAGE2,    type = rw;
13     PAGE3:    load = PAGE3,    type = rw;
14     LOWCODE:  load = RAM,      type = ro,               optional = yes;
15     INIT:     load = RAM,      type = ro, define = yes, optional = yes;
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     ZEROPAGE: load = ZP,       type = zp;
21     EXTZP:    load = ZP,       type = rw,  define = yes; 
22 }
23 FEATURES {
24     CONDES: segment = RODATA,
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 functions with type 2 are called in the interrupt
33     CONDES: segment = RODATA,
34             type = interruptor,
35             label = __INTERRUPTOR_TABLE__,
36             count = __INTERRUPTOR_COUNT__;
37 }
38 SYMBOLS {
39     __STACKSIZE__ = $800;       # 2K stack
40 }