]> git.sur5r.net Git - cc65/blob - cfg/gamate.cfg
Added space after function name.
[cc65] / cfg / gamate.cfg
1 # linker config to produce simple Gamate cartridge (.bin)
2
3 SYMBOLS {
4     __STARTUP__:   type = import;
5     __STACKSIZE__: type = weak, value = $0080; # 1 page stack
6 }
7
8 MEMORY {
9     # 0000-03ff is RAM
10     # FIXME: what zp range can we actually use?
11     # $0a-$11 is used by IRQ/NMI, $e8 is used by NMI
12     ZP:        start = $0012,        size = $00E8 - $0012;
13     CPUSTACK:  start = $0100,        size = $0100;
14     RAM:       start = $0200,        size = $0200 - __STACKSIZE__, define = yes;
15
16     CARTHEADER: file = %O, define = yes, start = %S, size = $0029;
17     # 6000-e000 can be (Cartridge) ROM
18     # WARNING: fill value must be $00 else it will no more work
19     #ROM:     start = $6000,         size = $1000,         fill = yes, fillval = $00, file = %O, define = yes;
20     #ROMFILL: start = $7000,         size = $7000,         fill = yes, fillval = $00, file = %O, define = yes;
21     # for images that have code >$6fff we must calculate the checksum!
22     ROM:      start = $6000 + $0029, size = $8000 - $0029, fill = yes, fillval = $00, file = %O, define = yes;
23 }
24
25 SEGMENTS {
26     ZEROPAGE: load = ZP,             type = zp,  define = yes;
27     EXTZP:    load = ZP,             type = zp,  define = yes, optional = yes;
28     APPZP:    load = ZP,             type = zp,  define = yes, optional = yes;
29     STARTUP:  load = CARTHEADER,     type = ro,  define = yes;
30     ONCE:     load = ROM,            type = ro,                optional = yes;
31     CODE:     load = ROM,            type = ro,  define = yes;
32     RODATA:   load = ROM,            type = ro,  define = yes;
33     DATA:     load = ROM, run = RAM, type = rw,  define = yes;
34     BSS:      load = RAM,            type = bss, define = yes;
35 }
36
37 FEATURES {
38     CONDES: type    = constructor,
39             label   = __CONSTRUCTOR_TABLE__,
40             count   = __CONSTRUCTOR_COUNT__,
41             segment = ONCE;
42     CONDES: type    = destructor,
43             label   = __DESTRUCTOR_TABLE__,
44             count   = __DESTRUCTOR_COUNT__,
45             segment = RODATA;
46     CONDES: type    = interruptor,
47             label   = __INTERRUPTOR_TABLE__,
48             count   = __INTERRUPTOR_COUNT__,
49             segment = RODATA,
50             import  = __CALLIRQ__;
51 }