]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/cbm510.cfg
Better handling of imports in the ExprNode structure.
[cc65] / src / ld65 / cfg / cbm510.cfg
1 SYMBOLS {
2     # The stack starts from $FEC3 and grows towards the video ram
3     __STACKSIZE__: value = $06C3, weak = yes; # ~1.5k stack
4 }
5 MEMORY {
6     HEADER:   file = %O,               start = $0001, size = $0050, fill = yes;
7     ZP:       file = %O, define = yes, start = $0051, size = $00AD, fill = yes;
8     STARTUP:  file = %O,               start = $00FE, size = $0102, fill = yes;
9     PAGE2:    file = %O,               start = $0200, size = $0100, fill = yes;
10     PAGE3:    file = %O,               start = $0300, size = $0100, fill = yes;
11     RAM:      file = %O,               start = $0400, size = $DC00;
12     CHARRAM:  file = "", define = yes, start = $E000, size = $1000;
13     VIDRAM:   file = "", define = yes, start = $F000, size = $0400;
14 }
15 SEGMENTS {
16     EXEHDR:   load = HEADER,  type = rw;
17     STARTUP:  load = STARTUP, type = rw;
18     PAGE2:    load = PAGE2,   type = rw;
19     PAGE3:    load = PAGE3,   type = rw;
20     LOWCODE:  load = RAM,     type = ro,                optional = yes;
21     INIT:     load = RAM,     type = ro,  define = yes, optional = yes;
22     CODE:     load = RAM,     type = ro;
23     RODATA:   load = RAM,     type = ro;
24     DATA:     load = RAM,     type = rw;
25     BSS:      load = RAM,     type = bss, define = yes;
26     ZEROPAGE: load = ZP,      type = zp;
27     EXTZP:    load = ZP,      type = rw,  define = 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 }