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