summaryrefslogtreecommitdiff
path: root/snes.inc
blob: 10cf0376a0cad29ba18a0a1466c6e10e7e5727f3 (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
;    TLL - A version of the Spectrum game TLL for the Super Nintendo
;
;    Copyright (C) 2018  Ian Cowburn (ianc@noddybox.co.uk)
;
;    This program is free software: you can redistribute it and/or modify
;    it under the terms of the GNU General Public License as published by
;    the Free Software Foundation, either version 3 of the License, or
;    (at your option) any later version.
;
;    This program is distributed in the hope that it will be useful,
;    but WITHOUT ANY WARRANTY; without even the implied warranty of
;    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;    GNU General Public License for more details.
;
;    You should have received a copy of the GNU General Public License
;    along with this program.  If not, see <http://www.gnu.org/licenses/>.
;
;    -------------------------------------------------------------------------
;
;    SNES register definitions
;
INIDISP	equ	$2100
OBSEL	equ	$2101
OAMADDL	equ	$2102
OAMADDH	equ	$2103
OAMDATA	equ	$2104
BGMODE	equ	$2105
MOSAIC	equ	$2106
BG1SC	equ	$2107
BG2SC	equ	$2108
BG3SC	equ	$2109
BG4SC	equ	$210A
BG12NBA	equ	$210B
BG34NBA	equ	$210C
BG1HOFS	equ	$210D
BG1VOFS	equ	$210E
BG2HOFS	equ	$210F
BG2VOFS	equ	$2110
BG3HOFS	equ	$2111
BG3VOFS	equ	$2112
BG4HOFS	equ	$2113
BG4VOFS	equ	$2114
VMAIN	equ	$2115
VMADDL	equ	$2116
VMADDH	equ	$2117
VMDATAL	equ	$2118
VMDATAH	equ	$2119
M7SEL	equ	$211A
M7A	equ	$211B
M7B	equ	$211C
M7C	equ	$211D
M7D	equ	$211E
M7X	equ	$211F
M7Y	equ	$2120
CGADD	equ	$2121
CGDATA	equ	$2122
W12SEL	equ	$2123
W34SEL	equ	$2124
WOBJSEL	equ	$2125
WH0	equ	$2126
WH1	equ	$2127
WH2	equ	$2128
WH3	equ	$2129
WBGLOG	equ	$212A
WOBJLOG	equ	$212B
TM	equ	$212C
TS	equ	$212D
TMW	equ	$212E
TSW	equ	$212F
CGWSEL	equ	$2130
CGADSUB	equ	$2131
COLDATA	equ	$2132
SETINI	equ	$2133
MPYL	equ	$2134
MPYM	equ	$2135
MPYH	equ	$2136
SLHV	equ	$2137
OAMDATAREAD	equ	$2138
VMDATALREAD	equ	$2139
VMDATAHREAD	equ	$213A
CGDATAREAD	equ	$213B
OPHCT	equ	$213C
OPVCT	equ	$213D
STAT77	equ	$213E
STAT78	equ	$213F
APUIO0	equ	$2140
APUIO1	equ	$2141
APUIO2	equ	$2142
APUIO3	equ	$2143
WMDATA	equ	$2180
WMADDL	equ	$2181
WMADDM	equ	$2182
WMADDH	equ	$2183
JOYSER0	equ	$4016
JOYSER1	equ	$4017
NMITIMEN	equ	$4200
WRIO	equ	$4201
WRMPYA	equ	$4202
WRMPYB	equ	$4203
WRDIVL	equ	$4204
WRDIVH	equ	$4205
WRDIVB	equ	$4206
HTIMEL	equ	$4207
HTIMEH	equ	$4208
VTIMEL	equ	$4209
VTIMEH	equ	$420A
MDMAEN	equ	$420B
HDMAEN	equ	$420C
MEMSEL	equ	$420D
RDNMI	equ	$4210
TIMEUP	equ	$4211
HVBJOY	equ	$4212
RDIO	equ	$4213
RDDIVL	equ	$4214
RDDIVH	equ	$4215
RDMPYL	equ	$4216
RDMPYH	equ	$4217
JOY1L	equ	$4218
JOY1H	equ	$4219
JOY2L	equ	$421A
JOY2H	equ	$421B
JOY3L	equ	$421C
JOY3H	equ	$421D
JOY4L	equ	$421E
JOY4H	equ	$421F

DMAP0	equ	$4300
BBAD0	equ	$4301
A1T0L	equ	$4302
A1T0H	equ	$4303
A1B0	equ	$4304
DAS0L	equ	$4305
DAS0H	equ	$4306
DASB0	equ	$4307
A2A0L	equ	$4308
A2A0H	equ	$4309
NTLR0	equ	$430A

DMAP1	equ	$4310
BBAD1	equ	$4311
A1T1L	equ	$4312
A1T1H	equ	$4313
A1B1	equ	$4314
DAS1L	equ	$4315
DAS1H	equ	$4316
DASB1	equ	$4317
A2A1L	equ	$4318
A2A1H	equ	$4319
NTLR1	equ	$431A

DMAP2	equ	$4320
BBAD2	equ	$4321
A1T2L	equ	$4322
A1T2H	equ	$4323
A1B2	equ	$4324
DAS2L	equ	$4325
DAS2H	equ	$4326
DASB2	equ	$4327
A2A2L	equ	$4328
A2A2H	equ	$4329
NTLR2	equ	$432A

DMAP3	equ	$4330
BBAD3	equ	$4331
A1T3L	equ	$4332
A1T3H	equ	$4333
A1B3	equ	$4334
DAS3L	equ	$4335
DAS3H	equ	$4336
DASB3	equ	$4337
A2A3L	equ	$4338
A2A3H	equ	$4339
NTLR3	equ	$433A

DMAP4	equ	$4340
BBAD4	equ	$4341
A1T4L	equ	$4342
A1T4H	equ	$4343
A1B4	equ	$4344
DAS4L	equ	$4345
DAS4H	equ	$4346
DASB4	equ	$4347
A2A4L	equ	$4348
A2A4H	equ	$4349
NTLR4	equ	$434A

DMAP5	equ	$4350
BBAD5	equ	$4351
A1T5L	equ	$4352
A1T5H	equ	$4353
A1B5	equ	$4354
DAS5L	equ	$4355
DAS5H	equ	$4356
DASB5	equ	$4357
A2A5L	equ	$4358
A2A5H	equ	$4359
NTLR5	equ	$435A

DMAP6	equ	$4360
BBAD6	equ	$4361
A1T6L	equ	$4362
A1T6H	equ	$4363
A1B6	equ	$4364
DAS6L	equ	$4365
DAS6H	equ	$4366
DASB6	equ	$4367
A2A6L	equ	$4368
A2A6H	equ	$4369
NTLR6	equ	$436A

DMAP7	equ	$4370
BBAD7	equ	$4371
A1T7L	equ	$4372
A1T7H	equ	$4373
A1B7	equ	$4374
DAS7L	equ	$4375
DAS7H	equ	$4376
DASB7	equ	$4377
A2A7L	equ	$4378
A2A7H	equ	$4379
NTLR7	equ	$437A