]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/vic20-32k.cfg
New linker config for the VIC-20 with 32K cartridge by Stefan Haubenthal.
[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     RAM: start = $11FF, size = $6E01, define = yes, file = %O;
6 }
7 SEGMENTS {
8     STARTUP:  load = RAM, type = ro;
9     LOWCODE:  load = RAM, type = ro,               optional = yes;
10     INIT:     load = RAM, type = ro, define = yes, optional = yes;
11     CODE:     load = RAM, type = ro;
12     RODATA:   load = RAM, type = ro;
13     DATA:     load = RAM, type = rw;
14     BSS:      load = RAM, type = bss, define = yes;
15     HEAP:     load = RAM, type = bss, optional = yes; # must sit just below stack
16     ZEROPAGE: load = ZP,  type = zp;
17 }
18 FEATURES {
19     CONDES: segment = INIT,
20             type = constructor,
21             label = __CONSTRUCTOR_TABLE__,
22             count = __CONSTRUCTOR_COUNT__;
23     CONDES: segment = RODATA,
24             type = destructor,
25             label = __DESTRUCTOR_TABLE__,
26             count = __DESTRUCTOR_COUNT__;
27     CONDES: segment = RODATA,
28             type = interruptor,
29             label = __INTERRUPTOR_TABLE__,
30             count = __INTERRUPTOR_COUNT__;
31 }
32 SYMBOLS {
33     __STACKSIZE__ = $400;       # 1K stack
34 }