1 # if you want to combine the 2 16 kbyte roms
2 # make sure the halves are mirrored in the 64kbyte cartridge image
3 # or reset from code >0xc000 and switch bank to the 3rd bank
6 __STACKSIZE__: type = weak, value = $0100; # 1 page stack
9 ZP: file = "", start = $0000, size = $0100;
10 CPUSTACK: file = "", start = $0100, size = $0100;
11 RAM: file = "", start = $0200, size = $1E00 - __STACKSIZE__, define = yes;
12 VRAM: file = "", start = $4000, size = $2000;
13 ROM: file = %O, start = $8000, size = $8000, fill = yes, fillval = $FF, define = yes;
16 ZEROPAGE: load = ZP, type = zp, define = yes;
17 LOWCODE: load = ROM, type = ro, optional = yes;
18 ONCE: load = ROM, type = ro, 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 = $7FF0;
23 VECTOR: load = ROM, type = ro, offset = $7FFA;
24 BSS: load = RAM, type = bss, define = yes;
27 CONDES: type = constructor,
28 label = __CONSTRUCTOR_TABLE__,
29 count = __CONSTRUCTOR_COUNT__,
31 CONDES: type = destructor,
32 label = __DESTRUCTOR_TABLE__,
33 count = __DESTRUCTOR_COUNT__,
35 CONDES: type = interruptor,
36 label = __INTERRUPTOR_TABLE__,
37 count = __INTERRUPTOR_COUNT__,