]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/supervision-64k.cfg
Renamed some additional (not builtin) linker configs.
[cc65] / src / ld65 / cfg / supervision-64k.cfg
1 # supervision 64kbyte cartridge with bankswitching
2 # for assembler
3
4 # ld65 config file
5 # ld65 --config supervision.cfg -o <prog>.bin <prog>.o
6
7 MEMORY {
8     RAM:      start = $0000, size = $2000;
9     VRAM:     start = $4000, size = $2000;
10     BANKROM1: start = $8000, size = $4000, fill = yes, fillval = $FF, file = %O;
11     BANKROM2: start = $8000, size = $4000, fill = yes, fillval = $FF, file = %O;
12     BANKROM3: start = $8000, size = $4000, fill = yes, fillval = $FF, file = %O;
13     ROM:      start = $C000, size = $4000, fill = yes, fillval = $FF, file = %O;
14 }
15
16 SEGMENTS {
17     LOWCODE:  load = ROM,      type = ro,                optional = yes;
18     INIT:     load = ROM,      type = ro,  define = yes, optional = yes;
19     CODE:     load = ROM,      type = ro;
20     RODATA:   load = ROM,      type = ro;
21     BANK1:    load = BANKROM1, type = ro;
22     BANK2:    load = BANKROM2, type = ro;
23     BANK3:    load = BANKROM3, type = ro;
24     ZEROPAGE: load = RAM,      type = bss, define = yes;
25     DATA:     load = RAM,      type = bss, offset = $0200, define = yes;
26     BSS:      load = RAM,      type = bss, define = yes;
27     HEAP:     load = RAM,      type = bss, optional = yes; # must sit just below stack
28     VECTOR:   load = ROM,      type = ro,  offset = $3FFA;
29 }