3 ZP: start = $02, size = $1A, type = rw, define = yes;
5 # INES Cartridge Header
6 HEADER: start = $0, size = $10, file = %O ,fill = yes;
13 ROM0: start = $8000, size = $7ff4, file = %O ,fill = yes, define = yes;
15 # Hardware Vectors at End of 2nd 8K ROM
16 ROMV: start = $fff6, size = $c, file = %O, fill = yes;
19 ROM2: start = $0000, size = $2000, file = %O, fill = yes;
21 # standard 2k SRAM (-zeropage)
22 # $0100-$0200 cpu stack
23 # $0200-$0500 3 pages for ppu memory write buffer
24 # $0500-$0800 3 pages for cc65 parameter stack
25 SRAM: start = $0500, size = $0300, define = yes;
27 # additional 8K SRAM Bank
31 RAM: start = $6000, size = $2000, define = yes;
36 HEADER: load = HEADER, type = ro;
37 STARTUP: load = ROM0, type = ro, define = yes;
38 LOWCODE: load = ROM0, type = ro, optional = yes;
39 INIT: load = ROM0, type = ro, define = yes, optional = yes;
40 CODE: load = ROM0, type = ro, define = yes;
41 RODATA: load = ROM0, type = ro, define = yes;
42 DATA: load = ROM0, run = RAM, type = rw, define = yes;
43 VECTORS: load = ROMV, type = rw;
44 CHARS: load = ROM2, type = rw;
45 BSS: load = RAM, type = bss, define = yes;
46 ZEROPAGE: load = ZP, type = zp;
50 CONDES: segment = INIT,
52 label = __CONSTRUCTOR_TABLE__,
53 count = __CONSTRUCTOR_COUNT__;
54 CONDES: segment = RODATA,
56 label = __DESTRUCTOR_TABLE__,
57 count = __DESTRUCTOR_COUNT__;
61 __STACKSIZE__ = $0300; # 3 pages stack