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