-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnes.cfg
35 lines (34 loc) · 1.28 KB
/
nes.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
SYMBOLS {
PPUCTRL: type=export, value=$2000;
PPUMASK: type=export, value=$2001;
PPUSTATUS: type=export, value=$2002;
OAMADDR: type=export, value=$2003;
OAMDATA: type=export, value=$2004;
PPUSCROLL: type=export, value=$2005;
PPUADDR: type=export, value=$2006;
PPUDATA: type=export, value=$2007;
OAMDMA: type=export, value=$4014;
CONTROLLER1: type=export, value=$4016;
CONTROLLER2: type=export, value=$4017;
}
MEMORY {
HEADER: file=%O, start=$0000, size=$0010, fill=yes, type=ro;
PRGROM: file=%O, start=$8000, size=$8000, fill=yes, type=ro;
CHRROM: file=%O, start=$0000, size=$2000, fill=yes, type=ro;
ZP: file="", start=$0000, size=$0100, type=rw;
CPUSTACK: file="", start=$0100, size=$0100, type=rw;
OAM: file="", start=$0200, size=$00FF, type=rw;
RAM: file="", start=$0300, size=$0500, define=yes;
SRAM: file="", start=$6000, size=$2000, define=yes;
}
SEGMENTS {
HEADER: load=HEADER, type=ro;
CODE: load=PRGROM, type=ro;
RODATA: load=PRGROM, type=ro, optional=yes;
VECTORS: load=PRGROM, type=ro, start=$FFFA;
CHARS: load=CHRROM, type=ro;
ZEROPAGE: load=ZP, type=zp, optional=yes;
OAM: load=OAM, type=bss, optional=yes;
BSS: load=RAM, type=bss, optional=yes;
SRAM: load=SRAM, type=rw, optional=yes;
}