]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/supervision-16k.cfg
Exclude (small) stack from RAM memory area (like on most other targets) to make expli...
[cc65] / src / ld65 / cfg / supervision-16k.cfg
1 # supervision 16kbyte cartridge
2
3 # ld65 config file
4 # ld65 --config supervision16.cfg -o <prog>.bin <prog>.o
5
6 SYMBOLS {
7     __STACKSIZE__: value = $0100, weak = yes; # 1 page stack
8 }
9 MEMORY {
10     ZP:       start = $0000, size = $0100;
11     CPUSTACK: start = $0100, size = $0100;
12     RAM:      start = $0200, size = $1E00 - __STACKSIZE__;
13     VRAM:     start = $4000, size = $2000;
14     ROM:      start = $C000, size = $4000, fill = yes, fillval = $ff, file=%O, define=yes;
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,  define = yes;
20     RODATA:   load = ROM,            type = ro,  define = yes;
21     DATA:     load = ROM, run = RAM, type = rw,  define = yes;
22     FFF0:     load = ROM,            type = ro,  offset = $3FF0;
23     VECTOR:   load = ROM,            type = ro,  offset = $3FFA;
24     BSS:      load = RAM,            type = bss, define = yes;
25     ZEROPAGE: load = ZP,             type = zp,  define = yes;
26 }
27 FEATURES {
28     CONDES: segment = INIT,
29             type    = constructor,
30             label   = __CONSTRUCTOR_TABLE__,
31             count   = __CONSTRUCTOR_COUNT__;
32     CONDES: segment = RODATA,
33             type    = destructor,
34             label   = __DESTRUCTOR_TABLE__,
35             count   = __DESTRUCTOR_COUNT__;
36     CONDES: segment = RODATA,
37             type    = interruptor,
38             label   = __INTERRUPTOR_TABLE__,
39             count   = __INTERRUPTOR_COUNT__;
40 }