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 = wprot;
37 STARTUP: load = ROM0, type = wprot, define = yes;
38 CODE: load = ROM0, type = wprot, define = yes;
39 RODATA: load = ROM0, type = wprot, define = yes;
40 DATA: load = ROM0, run = RAM, type = rw, define = yes;
41 VECTORS: load = ROMV, type = rw;
42 CHARS: load = ROM2, type = rw;
43 BSS: load = RAM, type = bss, define = yes;
44 ZEROPAGE: load = ZP, type = zp;
49 CONDES: segment = RODATA,
51 label = __CONSTRUCTOR_TABLE__,
52 count = __CONSTRUCTOR_COUNT__;
53 CONDES: segment = RODATA,
55 label = __DESTRUCTOR_TABLE__,
56 count = __DESTRUCTOR_COUNT__;
60 __STACKSIZE__ = $0300; # 3 pages stack