]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/vic20-32k.cfg
Reworked and improved the SYMBOLS section. The old syntax (using symbol =
[cc65] / src / ld65 / cfg / vic20-32k.cfg
1 # Memory configuration for the VIC-20 with 32K RAM Cartridge
2 # Contributed by Stefan Haubenthal
3
4 SYMBOLS {
5     __STACKSIZE__: type = weak, value = $0400; # 1k stack
6 }
7 MEMORY {
8     ZP:                define = yes, start = $0002, size = $001A;
9     HEADER: file = %O,               start = $11FF, size = $000E;
10     RAM:    file = %O, define = yes, start = $120D, size = $6DF3 - __STACKSIZE__;
11 }
12 SEGMENTS {
13     EXEHDR:   load = HEADER, type = ro;
14     STARTUP:  load = RAM,    type = ro;
15     LOWCODE:  load = RAM,    type = ro,                optional = yes;
16     INIT:     load = RAM,    type = ro,  define = yes, optional = yes;
17     CODE:     load = RAM,    type = ro;
18     RODATA:   load = RAM,    type = ro;
19     DATA:     load = RAM,    type = rw;
20     ZPSAVE:   load = RAM,    type = bss;
21     BSS:      load = RAM,    type = bss, define = yes;
22     ZEROPAGE: load = ZP,     type = zp;
23 }
24 FEATURES {
25     CONDES: segment = INIT,
26             type    = constructor,
27             label   = __CONSTRUCTOR_TABLE__,
28             count   = __CONSTRUCTOR_COUNT__;
29     CONDES: segment = RODATA,
30             type    = destructor,
31             label   = __DESTRUCTOR_TABLE__,
32             count   = __DESTRUCTOR_COUNT__;
33     CONDES: segment = RODATA,
34             type    = interruptor,
35             label   = __INTERRUPTOR_TABLE__,
36             count   = __INTERRUPTOR_COUNT__;
37 }