]> git.sur5r.net Git - cc65/blob - cfg/gamate.cfg
5eac46c4be73373ce66af979527560f308001bff
[cc65] / cfg / gamate.cfg
1 # c version of 32kbyte config file
2 # .data located in rom
3
4 # ld65 config file
5 # ld65 --config gamate.cfg -o <prog>.bin <prog>.o
6
7 MEMORY {
8     ZP: start = $0000, size = $100;
9     CPUSTACK: start = $0100, size =$100;
10     RAM: start = $0200, size = $200, define = yes;
11 #    ROM: start = $6000, size = $8000, fill = yes, fillval = $ff, file = %O, define = yes;
12     ROM: start = $6000, size = $8000, fill = yes, fillval = $00, file = %O, define = yes;
13 }
14
15 SEGMENTS {
16     CODE: load = ROM, type = ro, define=yes;
17     RODATA: load = ROM, type = ro, define=yes;
18     DATA: load = ROM, run=RAM, type = rw, define = yes;
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 }