2 __STACKSIZE__: type = weak, value = $0300; # 3 pages stack
5 ZP: file = "", start = $0002, size = $001A, type = rw, define = yes;
7 # INES Cartridge Header
8 HEADER: file = %O, start = $0000, size = $0010, fill = yes;
15 ROM0: file = %O, start = $8000, size = $7FF4, fill = yes, define = yes;
17 # Hardware Vectors at End of 2nd 8K ROM
18 ROMV: file = %O, start = $FFF6, size = $000C, fill = yes;
21 ROM2: file = %O, start = $0000, size = $2000, fill = yes;
23 # standard 2k SRAM (-zeropage)
24 # $0100-$0200 cpu stack
25 # $0200-$0500 3 pages for ppu memory write buffer
26 # $0500-$0800 3 pages for cc65 parameter stack
27 SRAM: file = "", start = $0500, size = __STACKSIZE__, define = yes;
29 # additional 8K SRAM Bank
33 RAM: file = "", start = $6000, size = $2000, define = yes;
36 ZEROPAGE: load = ZP, type = zp;
37 HEADER: load = HEADER, type = ro;
38 STARTUP: load = ROM0, type = ro, define = yes;
39 LOWCODE: load = ROM0, type = ro, optional = yes;
40 ONCE: load = ROM0, type = ro, optional = yes;
41 CODE: load = ROM0, type = ro, define = yes;
42 RODATA: load = ROM0, type = ro, define = yes;
43 DATA: load = ROM0, run = RAM, type = rw, define = yes;
44 VECTORS: load = ROMV, type = rw;
45 CHARS: load = ROM2, type = rw;
46 BSS: load = RAM, type = bss, define = yes;
49 CONDES: type = constructor,
50 label = __CONSTRUCTOR_TABLE__,
51 count = __CONSTRUCTOR_COUNT__,
53 CONDES: type = destructor,
54 label = __DESTRUCTOR_TABLE__,
55 count = __DESTRUCTOR_COUNT__,
57 CONDES: type = interruptor,
58 label = __INTERRUPTOR_TABLE__,
59 count = __INTERRUPTOR_COUNT__,