]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/cbm510.cfg
Made stacksize user-adjustable on the cmdline.
[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 = $00AD, fill = yes, fillval = 0, type = rw, file = %O, define = yes;
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 = $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     HEAP:     load = RAM,      type = bss, optional = yes; # must sit just below stack
23     ZEROPAGE: load = ZP,       type = zp;
24     EXTZP:    load = ZP,       type = rw,  define = yes;
25 }
26 FEATURES {
27     CONDES: segment = INIT,
28             type = constructor,
29             label = __CONSTRUCTOR_TABLE__,
30             count = __CONSTRUCTOR_COUNT__;
31     CONDES: segment = RODATA,
32             type = destructor,
33             label = __DESTRUCTOR_TABLE__,
34             count = __DESTRUCTOR_COUNT__;
35     CONDES: segment = RODATA,
36             type = interruptor,
37             label = __INTERRUPTOR_TABLE__,
38             count = __INTERRUPTOR_COUNT__;
39 }
40 SYMBOLS {
41     __STACKSIZE__: value = $0781, weak = yes; # ~2k stack
42 }