]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/bbc.cfg
e1b2f771f6bd32c3c6e9f07c60310db691d5ecbf
[cc65] / src / ld65 / cfg / bbc.cfg
1 MEMORY {
2     ZP:  start = $0070, size = $0020, type = rw, define = yes;
3     RAM: start = $0E00, size = $7200, file = %O;
4 }
5 SEGMENTS {
6     STARTUP:  load = RAM, type = ro, define = yes;
7     LOWCODE:  load = RAM, type = ro,               optional = yes;
8     INIT:     load = RAM, type = ro, define = yes, optional = yes;
9     CODE:     load = RAM, type = ro;
10     RODATA:   load = RAM, type = ro;
11     DATA:     load = RAM, type = rw;
12     BSS:      load = RAM, type = bss, define = yes;
13     HEAP:     load = RAM, type = bss, optional = yes; # must sit just below stack
14     ZEROPAGE: load = ZP,  type = zp;
15 }
16 FEATURES {
17     CONDES: segment = INIT,
18             type = constructor,
19             label = __CONSTRUCTOR_TABLE__,
20             count = __CONSTRUCTOR_COUNT__;
21     CONDES: segment = RODATA,
22             type = destructor,
23             label = __DESTRUCTOR_TABLE__,
24             count = __DESTRUCTOR_COUNT__;
25     CONDES: type = interruptor,
26             segment = RODATA,
27             label = __INTERRUPTOR_TABLE__,
28             count = __INTERRUPTOR_COUNT__;
29 }
30 SYMBOLS {
31     __STACKSIZE__ = $800;       # 2K stack
32 }
33
34