]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/none.cfg
49409a82c3831d90222de9a90f19ff7cdadd6e30
[cc65] / src / ld65 / cfg / none.cfg
1 SYMBOLS {
2     __STACKSIZE__: type = weak, value = $0800; # 2k stack
3 }
4 MEMORY {
5     ZP:  file = "", define = yes, start = $0000, size = $0001F;
6     RAM: file = %O,               start = %S,    size = $10000 - __STACKSIZE__;
7 }
8 SEGMENTS {
9     LOWCODE:  load = RAM, type = ro,                optional = yes;
10     INIT:     load = RAM, type = ro,  define = yes, optional = yes;
11     CODE:     load = RAM, type = rw;
12     RODATA:   load = RAM, type = rw;
13     DATA:     load = RAM, type = rw;
14     BSS:      load = RAM, type = bss, define = yes;
15     ZEROPAGE: load = ZP,  type = zp;
16 }
17 FEATURES {
18     CONDES: type    = constructor,
19             label   = __CONSTRUCTOR_TABLE__,
20             count   = __CONSTRUCTOR_COUNT__,
21             segment = INIT;
22     CONDES: type    = destructor,
23             label   = __DESTRUCTOR_TABLE__,
24             count   = __DESTRUCTOR_COUNT__,
25             segment = RODATA;
26     CONDES: type    = interruptor,
27             label   = __INTERRUPTOR_TABLE__,
28             count   = __INTERRUPTOR_COUNT__,
29             segment = RODATA,
30             import  = __CALLIRQ__;
31 }