2 __STACKSIZE__: type = weak, value = $0300; # 3 pages stack
6 ZP: start = $00, size = $1A, type = rw, define = yes;
8 # INES Cartridge Header
9 #HEADER: start = $0, size = $10, file = %O ,fill = yes;
17 ROM0: start = $e000, size = $1ff6, file = %O ,fill = yes, define = yes;
18 # Hardware Vectors at End of 2nd 8K ROM
19 ROMV: start = $fff6, size = $a, file = %O,fill = yes;
21 ROM: start = $6000, size = $8000, file = %O, fill = yes,define=yes;
24 # standard 2k SRAM (-zeropage)
25 # $0100-$0200 cpu stack
26 # $0200-$0500 3 pages for ppu memory write buffer
27 # $0500-$0800 3 pages for cc65 parameter stack
28 #SRAM: start = $0500, size = $0300, define = yes;
30 # additional 8K SRAM Bank
34 # RAM: start = $2200, size = $1000, define = yes;
35 # RAM2: start = $3200, size = $0e00, define = yes;
36 RAM: start = $2200, size = $1e00, define = yes;
40 #HEADER: load = HEADER, type = wprot;
42 #aSTARTUP: load = ROM0, type = wprot, define = yes;
43 STARTUP: load = ROM0, type = ro, define = yes;
45 INIT: load = ROM0, type = ro, define = yes, optional = yes;
46 CODE: load = ROM, type = ro, define = yes;
47 RODATA: load = ROM, type = ro, define = yes;
49 DATA: load = ROM0, run= RAM, type = rw, define = yes;
50 # BSS: load = RAM2, type = bss, define = yes;
51 BSS: load = RAM, type = bss, define = yes;
53 VECTORS: load = ROMV, type = rw, define = yes;
54 #CHARS: load = ROM2, type = rw;
57 ZEROPAGE: load = ZP, type = zp, define = yes;
61 CONDES: segment = STARTUP,
63 label=__CONSTRUCTOR_TABLE__,
64 count=__CONSTRUCTOR_COUNT__;
65 CONDES: segment = STARTUP,
67 label=__DESTRUCTOR_TABLE__,
68 count=__DESTRUCTOR_COUNT__;