Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/lynx/lynxdef.h
2 views
1
//
2
// Copyright (c) 2004 K. Wilkins
3
//
4
// This software is provided 'as-is', without any express or implied warranty.
5
// In no event will the authors be held liable for any damages arising from
6
// the use of this software.
7
//
8
// Permission is granted to anyone to use this software for any purpose,
9
// including commercial applications, and to alter it and redistribute it
10
// freely, subject to the following restrictions:
11
//
12
// 1. The origin of this software must not be misrepresented; you must not
13
// claim that you wrote the original software. If you use this software
14
// in a product, an acknowledgment in the product documentation would be
15
// appreciated but is not required.
16
//
17
// 2. Altered source versions must be plainly marked as such, and must not
18
// be misrepresented as being the original software.
19
//
20
// 3. This notice may not be removed or altered from any source distribution.
21
//
22
23
//////////////////////////////////////////////////////////////////////////////
24
// Handy - An Atari Lynx Emulator //
25
// Copyright (c) 1996,1997 //
26
// K. Wilkins //
27
//////////////////////////////////////////////////////////////////////////////
28
// Generic lyynx definition header file //
29
//////////////////////////////////////////////////////////////////////////////
30
// //
31
// This header file provides the definition of all of the useful hardware //
32
// addreses within the Lynx. //
33
// //
34
// K. Wilkins //
35
// August 1997 //
36
// //
37
//////////////////////////////////////////////////////////////////////////////
38
// Revision History: //
39
// ----------------- //
40
// //
41
// 01Aug1997 KW Document header added & class documented. //
42
// //
43
//////////////////////////////////////////////////////////////////////////////
44
45
#define TMPADR 0xfc00
46
#define TMPADRL 0xfc00
47
#define TMPADRH 0xfc01
48
#define TILTACUM 0xfc02
49
#define TILTACUML 0xfc02
50
#define TILTACUMH 0xfc03
51
#define HOFF 0xfc04
52
#define HOFFL 0xfc04
53
#define HOFFH 0xfc05
54
#define VOFF 0xfc06
55
#define VOFFL 0xfc06
56
#define VOFFH 0xfc07
57
#define VIDBAS 0xfc08
58
#define VIDBASL 0xfc08
59
#define VIDBASH 0xfc09
60
#define COLLBAS 0xfc0a
61
#define COLLBASL 0xfc0a
62
#define COLLBASH 0xfc0b
63
#define VIDADR 0xfc0c
64
#define VIDADRL 0xfc0c
65
#define VIDADRH 0xfc0d
66
#define COLLADR 0xfc0e
67
#define COLLADRL 0xfc0e
68
#define COLLADRH 0xfc0f
69
#define SCBNEXT 0xfc10
70
#define SCBNEXTL 0xfc10
71
#define SCBNEXTH 0xfc11
72
#define SPRDLINE 0xfc12
73
#define SPRDLINEL 0xfc12
74
#define SPRDLINEH 0xfc13
75
#define HPOSSTRT 0xfc14
76
#define HPOSSTRTL 0xfc14
77
#define HPOSSTRTH 0xfc15
78
#define VPOSSTRT 0xfc16
79
#define VPOSSTRTL 0xfc16
80
#define VPOSSTRTH 0xfc17
81
#define SPRHSIZ 0xfc18
82
#define SPRHSIZL 0xfc18
83
#define SPRHSIZH 0xfc19
84
#define SPRVSIZ 0xfc1a
85
#define SPRVSIZL 0xfc1a
86
#define SPRVSIZH 0xfc1b
87
#define STRETCH 0xfc1c
88
#define STRETCHL 0xfc1c
89
#define STRETCHH 0xfc1d
90
#define TILT 0xfc1e
91
#define TILTL 0xfc1e
92
#define TILTH 0xfc1f
93
#define SPRDOFF 0xfc20
94
#define SPRDOFFL 0xfc20
95
#define SPRDOFFH 0xfc21
96
#define SPRVPOS 0xfc22
97
#define SPRVPOSL 0xfc22
98
#define SPRVPOSH 0xfc23
99
#define COLLOFF 0xfc24
100
#define COLLOFFL 0xfc24
101
#define COLLOFFH 0xfc25
102
#define VSIZACUM 0xfc26
103
#define VSIZACUML 0xfc26
104
#define VSIZACUMH 0xfc27
105
#define HSIZOFF 0xfc28
106
#define HSIZOFFL 0xfc28
107
#define HSIZOFFH 0xfc29
108
#define VSIZOFF 0xfc2a
109
#define VSIZOFFL 0xfc2a
110
#define VSIZOFFH 0xfc2b
111
#define SCBADR 0xfc2c
112
#define SCBADRL 0xfc2c
113
#define SCBADRH 0xfc2d
114
#define PROCADR 0xfc2e
115
#define PROCADRL 0xfc2e
116
#define PROCADRH 0xfc2f
117
#define MATHD 0xfc52
118
#define MATHC 0xfc53
119
#define MATHB 0xfc54
120
#define MATHA 0xfc55
121
#define MATHP 0xfc56
122
#define MATHN 0xfc57
123
#define MATHH 0xfc60
124
#define MATHG 0xfc61
125
#define MATHF 0xfc62
126
#define MATHE 0xfc63
127
#define MATHM 0xfc6c
128
#define MATHL 0xfc6d
129
#define MATHK 0xfc6e
130
#define MATHJ 0xfc6f
131
#define SPRCTL0 0xfc80
132
#define SPRCTL1 0xfc81
133
#define SPRCOLL 0xfc82
134
#define SPRINIT 0xfc83
135
#define SUZYHREV 0xfc88
136
#define SUZYSREV 0xfc89
137
#define SUZYBUSEN 0xfc90
138
#define SPRGO 0xfc91
139
#define SPRSYS 0xfc92
140
#define JOYSTICK 0xfcb0
141
#define SWITCHES 0xfcb1
142
#define RCART0 0xfcb2
143
#define RCART1 0xfcb3
144
#define LEDS 0xfcc0
145
#define PPORTSTAT 0xfcc2
146
#define PPORTDATA 0xfcc3
147
#define HOWIE 0xfcc4
148
#define TIM0BKUP 0xfd00
149
#define TIM0CTLA 0xfd01
150
#define TIM0CNT 0xfd02
151
#define TIM0CTLB 0xfd03
152
#define TIM1BKUP 0xfd04
153
#define TIM1CTLA 0xfd05
154
#define TIM1CNT 0xfd06
155
#define TIM1CTLB 0xfd07
156
#define TIM2BKUP 0xfd08
157
#define TIM2CTLA 0xfd09
158
#define TIM2CNT 0xfd0a
159
#define TIM2CTLB 0xfd0b
160
#define TIM3BKUP 0xfd0c
161
#define TIM3CTLA 0xfd0d
162
#define TIM3CNT 0xfd0e
163
#define TIM3CTLB 0xfd0f
164
#define TIM4BKUP 0xfd10
165
#define TIM4CTLA 0xfd11
166
#define TIM4CNT 0xfd12
167
#define TIM4CTLB 0xfd13
168
#define TIM5BKUP 0xfd14
169
#define TIM5CTLA 0xfd15
170
#define TIM5CNT 0xfd16
171
#define TIM5CTLB 0xfd17
172
#define TIM6BKUP 0xfd18
173
#define TIM6CTLA 0xfd19
174
#define TIM6CNT 0xfd1a
175
#define TIM6CTLB 0xfd1b
176
#define TIM7BKUP 0xfd1c
177
#define TIM7CTLA 0xfd1d
178
#define TIM7CNT 0xfd1e
179
#define TIM7CTLB 0xfd1f
180
181
#define AUD0VOL 0xfd20
182
#define AUD0SHFTFB 0xfd21
183
#define AUD0OUTVAL 0xfd22
184
#define AUD0L8SHFT 0xfd23
185
#define AUD0TBACK 0xfd24
186
#define AUD0CTL 0xfd25
187
#define AUD0COUNT 0xfd26
188
#define AUD0MISC 0xfd27
189
190
#define AUD1VOL 0xfd28
191
#define AUD1SHFTFB 0xfd29
192
#define AUD1OUTVAL 0xfd2a
193
#define AUD1L8SHFT 0xfd2b
194
#define AUD1TBACK 0xfd2c
195
#define AUD1CTL 0xfd2d
196
#define AUD1COUNT 0xfd2e
197
#define AUD1MISC 0xfd2f
198
199
#define AUD2VOL 0xfd30
200
#define AUD2SHFTFB 0xfd31
201
#define AUD2OUTVAL 0xfd32
202
#define AUD2L8SHFT 0xfd33
203
#define AUD2TBACK 0xfd34
204
#define AUD2CTL 0xfd35
205
#define AUD2COUNT 0xfd36
206
#define AUD2MISC 0xfd37
207
208
#define AUD3VOL 0xfd38
209
#define AUD3SHFTFB 0xfd39
210
#define AUD3OUTVAL 0xfd3a
211
#define AUD3L8SHFT 0xfd3b
212
#define AUD3TBACK 0xfd3c
213
#define AUD3CTL 0xfd3d
214
#define AUD3COUNT 0xfd3e
215
#define AUD3MISC 0xfd3f
216
217
#define ATTEN_A 0xFD40 //
218
#define ATTEN_B 0xFD41
219
#define ATTEN_C 0xFD42 // Lynx2 Regs see macros/handy.equ
220
#define ATTEN_D 0xFD43
221
#define MPAN 0xFD44 //
222
#define MSTEREO 0xfd50
223
#define INTRST 0xfd80
224
#define INTSET 0xfd81
225
#define MAGRDY0 0xfd84
226
#define MAGRDY1 0xfd85
227
#define AUDIN 0xfd86
228
#define SYSCTL1 0xfd87
229
#define MIKEYHREV 0xfd88
230
#define MIKEYSREV 0xfd89
231
#define IODIR 0xfd8a
232
#define IODAT 0xfd8b
233
#define SERCTL 0xfd8c
234
#define SERDAT 0xfd8d
235
#define SDONEACK 0xfd90
236
#define CPUSLEEP 0xfd91
237
#define DISPCTL 0xfd92
238
#define PBKUP 0xfd93
239
#define DISPADR 0xfd94
240
#define DISPADRL 0xfd94
241
#define DISPADRH 0xfd95
242
#define Mtest0 0xfd9c
243
#define Mtest1 0xfd9d
244
#define Mtest2 0xfd9e
245
#define GREEN0 0xfda0
246
#define GREEN1 0xfda1
247
#define GREEN2 0xfda2
248
#define GREEN3 0xfda3
249
#define GREEN4 0xfda4
250
#define GREEN5 0xfda5
251
#define GREEN6 0xfda6
252
#define GREEN7 0xfda7
253
#define GREEN8 0xfda8
254
#define GREEN9 0xfda9
255
#define GREENA 0xfdaa
256
#define GREENB 0xfdab
257
#define GREENC 0xfdac
258
#define GREEND 0xfdad
259
#define GREENE 0xfdae
260
#define GREENF 0xfdaf
261
#define BLUERED0 0xfdb0
262
#define BLUERED1 0xfdb1
263
#define BLUERED2 0xfdb2
264
#define BLUERED3 0xfdb3
265
#define BLUERED4 0xfdb4
266
#define BLUERED5 0xfdb5
267
#define BLUERED6 0xfdb6
268
#define BLUERED7 0xfdb7
269
#define BLUERED8 0xfdb8
270
#define BLUERED9 0xfdb9
271
#define BLUEREDA 0xfdba
272
#define BLUEREDB 0xfdbb
273
#define BLUEREDC 0xfdbc
274
#define BLUEREDD 0xfdbd
275
#define BLUEREDE 0xfdbe
276
#define BLUEREDF 0xfdbf
277
#define MMAPCTL 0xfff9
278
#define CPUNMI 0xfffa
279
#define CPUNMIL 0xfffa
280
#define CPUNMIH 0xfffb
281
#define CPURESET 0xfffc
282
#define CPURESETL 0xfffc
283
#define CPURESETH 0xfffd
284
#define CPUINT 0xfffe
285
#define CPUINTL 0xfffe
286
#define CPUINTH 0xffff
287
288
289