1 # supervision 16kbyte cartridge
4 # ld65 --config supervision16.cfg -o <prog>.bin <prog>.o
7 __STACKSIZE__: value = $0100, weak = yes; # 1 page stack
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;
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;
28 CONDES: segment = INIT,
30 label = __CONSTRUCTOR_TABLE__,
31 count = __CONSTRUCTOR_COUNT__;
32 CONDES: segment = RODATA,
34 label = __DESTRUCTOR_TABLE__,
35 count = __DESTRUCTOR_COUNT__;
36 CONDES: segment = RODATA,
38 label = __INTERRUPTOR_TABLE__,
39 count = __INTERRUPTOR_COUNT__;