]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/supervision.cfg
New target: supervision
[cc65] / src / ld65 / cfg / supervision.cfg
1 # if you want to combine the 2 16 kbyte roms
2 # make sure the halves are mirrored in the 64kbyte cartridge image
3 # or reset from code >0xc000 and switch bank to the 3rd bank
4
5 MEMORY {
6     ZP: start = $0000, size = $100;
7     CPUSTACK: start = $0100, size =$100;
8     RAM: start = $0200, size = $1e00, define = yes;
9     VRAM: start = $4000, size = $2000;
10     ROM: start = $8000, size = $8000, fill = yes, fillval = $ff, file = %O, define = yes;
11 }
12
13 SEGMENTS {
14     CODE: load = ROM, type = ro, define=yes;
15     RODATA: load = ROM, type = ro, define=yes;
16     DATA: load = ROM, run=RAM, type = rw, define = yes;
17     FFF0: load = ROM, type = ro, offset = $7FF0;
18     VECTOR: load = ROM, type = ro, offset = $7FFA;
19     BSS: load = RAM, type = bss, define = yes;
20     ZEROPAGE: load = ZP, type = zp, define = yes;
21 }
22
23 FEATURES {
24     CONDES: segment = RODATA,
25             type = constructor,
26             label = __CONSTRUCTOR_TABLE__,
27             count = __CONSTRUCTOR_COUNT__;
28     CONDES: segment = RODATA,
29             type = destructor,
30             label = __DESTRUCTOR_TABLE__,
31             count = __DESTRUCTOR_COUNT__;
32 }