R-PAGE
Resistance's Portable-Adventure-Game-Engine
Main Page
Related Pages
Data Structures
Files
File List
Globals
rpage
aos
board.h
Go to the documentation of this file.
1
/* Resistance's Portable-Adventure-Game-Engine (R-PAGE), Copyright (C) 2019 François Gutherz, Resistance.no
2
Released under MIT License, see license.txt for details.
3
*/
4
5
#ifdef LATTICE
6
#ifndef BOARD_H
7
#define BOARD_H
8
9
#define BLTDDAT_ADDR 0xDFF000
10
#define DMACONR_ADDR 0xDFF002
11
#define VPOSR_ADDR 0xDFF004
12
#define VHPOSR_ADDR 0xDFF006
13
#define DSKDATR_ADDR 0xDFF008
14
#define JOY0DAT_ADDR 0xDFF00A
15
#define JOY1DAT_ADDR 0xDFF00C
16
#define CLXDAT_ADDR 0xDFF00E
17
#define ADKCONR_ADDR 0xDFF010
18
#define POT0DAT_ADDR 0xDFF012
19
#define POT1DAT_ADDR 0xDFF014
20
#define POTINP_ADDR 0xDFF016
21
#define SERDATR_ADDR 0xDFF018
22
#define DSKBYTR_ADDR 0xDFF01A
23
#define INTENAR_ADDR 0xDFF01C
24
#define INTREQR_ADDR 0xDFF01E
25
#define DSKPTH_ADDR 0xDFF020
26
#define DSKPTL_ADDR 0xDFF022
27
#define DSKLEN_ADDR 0xDFF024
28
#define DSKDAT_ADDR 0xDFF026
29
#define REFPTR_ADDR 0xDFF028
30
#define VPOSW_ADDR 0xDFF02A
31
#define VHPOSW_ADDR 0xDFF02C
32
#define COPCON_ADDR 0xDFF02E
33
#define SERDAT_ADDR 0xDFF030
34
#define SERPER_ADDR 0xDFF032
35
#define POTGO_ADDR 0xDFF034
36
#define JOYTEST_ADDR 0xDFF036
37
#define STREQU_ADDR 0xDFF038
38
#define STRVBL_ADDR 0xDFF03A
39
#define STRHOR_ADDR 0xDFF03C
40
#define STRLONG_ADDR 0xDFF03E
41
#define BLTCON0_ADDR 0xDFF040
42
#define BLTCON1_ADDR 0xDFF042
43
#define BLTAFWM_ADDR 0xDFF044
44
#define BLTALWM_ADDR 0xDFF046
45
#define BLTCPTH_ADDR 0xDFF048
46
#define BLTCPTL_ADDR 0xDFF04A
47
#define BLTBPTH_ADDR 0xDFF04C
48
#define BLTBPTL_ADDR 0xDFF04E
49
#define BLTAPTH_ADDR 0xDFF050
50
#define BLTAPTL_ADDR 0xDFF052
51
#define BLTDPTH_ADDR 0xDFF054
52
#define BLTDPTL_ADDR 0xDFF056
53
#define BLTSIZE_ADDR 0xDFF058
54
#define BLTCON0L_ADDR 0xDFF05A
55
#define BLTSIZV_ADDR 0xDFF05C
56
#define BLTSIZH_ADDR 0xDFF05E
57
#define BLTCMOD_ADDR 0xDFF060
58
#define BLTBMOD_ADDR 0xDFF062
59
#define BLTAMOD_ADDR 0xDFF064
60
#define BLTDMOD_ADDR 0xDFF066
61
#define BLTCDAT_ADDR 0xDFF070
62
#define BLTBDAT_ADDR 0xDFF072
63
#define BLTADAT_ADDR 0xDFF074
64
#define SPRHDAT_ADDR 0xDFF078
65
#define BPLHDAT_ADDR 0xDFF07A
66
#define DENISEID_ADDR 0xDFF07C
67
#define DSKSYNC_ADDR 0xDFF07E
68
#define COP1LCH_ADDR 0xDFF080
69
#define COP1LCL_ADDR 0xDFF082
70
#define COP2LCH_ADDR 0xDFF084
71
#define COP2LCL_ADDR 0xDFF086
72
#define COPJMP1_ADDR 0xDFF088
73
#define COPJMP2_ADDR 0xDFF08A
74
#define COPINS_ADDR 0xDFF08C
75
#define DIWSTRT_ADDR 0xDFF08E
76
#define DIWSTOP_ADDR 0xDFF090
77
#define DDFSTRT_ADDR 0xDFF092
78
#define DDFSTOP_ADDR 0xDFF094
79
#define DMACON_ADDR 0xDFF096
80
#define CLXCON_ADDR 0xDFF098
81
#define INTENA_ADDR 0xDFF09A
82
#define INTREQ_ADDR 0xDFF09C
83
#define ADKCON_ADDR 0xDFF09E
84
#define AUD0LCH_ADDR 0xDFF0A0
85
#define AUD0LCL_ADDR 0xDFF0A2
86
#define AUD0LEN_ADDR 0xDFF0A4
87
#define AUD0PER_ADDR 0xDFF0A6
88
#define AUD0VOL_ADDR 0xDFF0A8
89
#define AUD0DAT_ADDR 0xDFF0AA
90
#define AUD1LCH_ADDR 0xDFF0B0
91
#define AUD1LCL_ADDR 0xDFF0B2
92
#define AUD1LEN_ADDR 0xDFF0B4
93
#define AUD1PER_ADDR 0xDFF0B6
94
#define AUD1VOL_ADDR 0xDFF0B8
95
#define AUD1DAT_ADDR 0xDFF0BA
96
#define AUD2LCH_ADDR 0xDFF0C0
97
#define AUD2LCL_ADDR 0xDFF0C2
98
#define AUD2LEN_ADDR 0xDFF0C4
99
#define AUD2PER_ADDR 0xDFF0C6
100
#define AUD2VOL_ADDR 0xDFF0C8
101
#define AUD2DAT_ADDR 0xDFF0CA
102
#define AUD3LCH_ADDR 0xDFF0D0
103
#define AUD3LCL_ADDR 0xDFF0D2
104
#define AUD3LEN_ADDR 0xDFF0D4
105
#define AUD3PER_ADDR 0xDFF0D6
106
#define AUD3VOL_ADDR 0xDFF0D8
107
#define AUD3DAT_ADDR 0xDFF0DA
108
#define BPL1PTH_ADDR 0xDFF0E0
109
#define BPL1PTL_ADDR 0xDFF0E2
110
#define BPL2PTH_ADDR 0xDFF0E4
111
#define BPL2PTL_ADDR 0xDFF0E6
112
#define BPL3PTH_ADDR 0xDFF0E8
113
#define BPL3PTL_ADDR 0xDFF0EA
114
#define BPL4PTH_ADDR 0xDFF0EC
115
#define BPL4PTL_ADDR 0xDFF0EE
116
#define BPL5PTH_ADDR 0xDFF0F0
117
#define BPL5PTL_ADDR 0xDFF0F2
118
#define BPL6PTH_ADDR 0xDFF0F4
119
#define BPL6PTL_ADDR 0xDFF0F6
120
#define BPL7PTH_ADDR 0xDFF0F8
121
#define BPL7PTL_ADDR 0xDFF0FA
122
#define BPL8PTH_ADDR 0xDFF0FC
123
#define BPL8PTL_ADDR 0xDFF0FE
124
#define BPLCON0_ADDR 0xDFF100
125
#define BPLCON1_ADDR 0xDFF102
126
#define BPLCON2_ADDR 0xDFF104
127
#define BPLCON3_ADDR 0xDFF106
128
#define BPL1MOD_ADDR 0xDFF108
129
#define BPL2MOD_ADDR 0xDFF10A
130
#define BPLCON4_ADDR 0xDFF10C
131
#define CLXCON2_ADDR 0xDFF10E
132
#define BPL1DAT_ADDR 0xDFF110
133
#define BPL2DAT_ADDR 0xDFF112
134
#define BPL3DAT_ADDR 0xDFF114
135
#define BPL4DAT_ADDR 0xDFF116
136
#define BPL5DAT_ADDR 0xDFF118
137
#define BPL6DAT_ADDR 0xDFF11A
138
#define BPL7DAT_ADDR 0xDFF11C
139
#define BPL8DAT_ADDR 0xDFF11E
140
#define SPR0PTH_ADDR 0xDFF120
141
#define SPR0PTL_ADDR 0xDFF122
142
#define SPR1PTH_ADDR 0xDFF124
143
#define SPR1PTL_ADDR 0xDFF126
144
#define SPR2PTH_ADDR 0xDFF128
145
#define SPR2PTL_ADDR 0xDFF12A
146
#define SPR3PTH_ADDR 0xDFF12C
147
#define SPR3PTL_ADDR 0xDFF12E
148
#define SPR4PTH_ADDR 0xDFF130
149
#define SPR4PTL_ADDR 0xDFF132
150
#define SPR5PTH_ADDR 0xDFF134
151
#define SPR5PTL_ADDR 0xDFF136
152
#define SPR6PTH_ADDR 0xDFF138
153
#define SPR6PTL_ADDR 0xDFF13A
154
#define SPR7PTH_ADDR 0xDFF13C
155
#define SPR7PTL_ADDR 0xDFF13E
156
#define SPR0POS_ADDR 0xDFF140
157
#define SPR0CTL_ADDR 0xDFF142
158
#define SPR0DATA_ADDR 0xDFF144
159
#define SPR0DATB_ADDR 0xDFF146
160
#define SPR1POS_ADDR 0xDFF148
161
#define SPR1CTL_ADDR 0xDFF14A
162
#define SPR1DATA_ADDR 0xDFF14C
163
#define SPR1DATB_ADDR 0xDFF14E
164
#define SPR2POS_ADDR 0xDFF150
165
#define SPR2CTL_ADDR 0xDFF152
166
#define SPR2DATA_ADDR 0xDFF154
167
#define SPR2DATB_ADDR 0xDFF156
168
#define SPR3POS_ADDR 0xDFF158
169
#define SPR3CTL_ADDR 0xDFF15A
170
#define SPR3DATA_ADDR 0xDFF15C
171
#define SPR3DATB_ADDR 0xDFF15E
172
#define SPR4POS_ADDR 0xDFF160
173
#define SPR4CTL_ADDR 0xDFF162
174
#define SPR4DATA_ADDR 0xDFF164
175
#define SPR4DATB_ADDR 0xDFF166
176
#define SPR5POS_ADDR 0xDFF168
177
#define SPR5CTL_ADDR 0xDFF16A
178
#define SPR5DATA_ADDR 0xDFF16C
179
#define SPR5DATB_ADDR 0xDFF16E
180
#define SPR6POS_ADDR 0xDFF170
181
#define SPR6CTL_ADDR 0xDFF172
182
#define SPR6DATA_ADDR 0xDFF174
183
#define SPR6DATB_ADDR 0xDFF176
184
#define SPR7POS_ADDR 0xDFF178
185
#define SPR7CTL_ADDR 0xDFF17A
186
#define SPR7DATA_ADDR 0xDFF17C
187
#define SPR7DATB_ADDR 0xDFF17E
188
#define COLOR00_ADDR 0xDFF180
189
#define COLOR01_ADDR 0xDFF182
190
#define COLOR02_ADDR 0xDFF184
191
#define COLOR03_ADDR 0xDFF186
192
#define COLOR04_ADDR 0xDFF188
193
#define COLOR05_ADDR 0xDFF18A
194
#define COLOR06_ADDR 0xDFF18C
195
#define COLOR07_ADDR 0xDFF18E
196
#define COLOR08_ADDR 0xDFF190
197
#define COLOR09_ADDR 0xDFF192
198
#define COLOR10_ADDR 0xDFF194
199
#define COLOR11_ADDR 0xDFF196
200
#define COLOR12_ADDR 0xDFF198
201
#define COLOR13_ADDR 0xDFF19A
202
#define COLOR14_ADDR 0xDFF19C
203
#define COLOR15_ADDR 0xDFF19E
204
#define COLOR16_ADDR 0xDFF1A0
205
#define COLOR17_ADDR 0xDFF1A2
206
#define COLOR18_ADDR 0xDFF1A4
207
#define COLOR19_ADDR 0xDFF1A6
208
#define COLOR20_ADDR 0xDFF1A8
209
#define COLOR21_ADDR 0xDFF1AA
210
#define COLOR22_ADDR 0xDFF1AC
211
#define COLOR23_ADDR 0xDFF1AE
212
#define COLOR24_ADDR 0xDFF1B0
213
#define COLOR25_ADDR 0xDFF1B2
214
#define COLOR26_ADDR 0xDFF1B4
215
#define COLOR27_ADDR 0xDFF1B6
216
#define COLOR28_ADDR 0xDFF1B8
217
#define COLOR29_ADDR 0xDFF1BA
218
#define COLOR30_ADDR 0xDFF1BC
219
#define COLOR31_ADDR 0xDFF1BE
220
#define HTOTAL_ADDR 0xDFF1C0
221
#define HSSTOP_ADDR 0xDFF1C2
222
#define HBSTRT_ADDR 0xDFF1C4
223
#define HBSTOP_ADDR 0xDFF1C6
224
#define VTOTAL_ADDR 0xDFF1C8
225
#define VSSTOP_ADDR 0xDFF1CA
226
#define VBSTRT_ADDR 0xDFF1CC
227
#define VBSTOP_ADDR 0xDFF1CE
228
#define SPRHSTRT_ADDR 0xDFF1D0
229
#define SPRHSTOP_ADDR 0xDFF1D2
230
#define BPLHSTRT_ADDR 0xDFF1D4
231
#define BPLHSTOP_ADDR 0xDFF1D6
232
#define HHPOSW_ADDR 0xDFF1D8
233
#define HHPOSR_ADDR 0xDFF1DA
234
#define BEAMCON0_ADDR 0xDFF1DC
235
#define HSSTRT_ADDR 0xDFF1DE
236
#define VSSTRT_ADDR 0xDFF1E0
237
#define HCENTER_ADDR 0xDFF1E2
238
#define DIWHIGH_ADDR 0xDFF1E4
239
#define BPLHMOD_ADDR 0xDFF1E6
240
#define SPRHPTH_ADDR 0xDFF1E8
241
#define SPRHPTL_ADDR 0xDFF1EA
242
#define BPLHPTH_ADDR 0xDFF1EC
243
#define BPLHPTL_ADDR 0xDFF1EE
244
#define FMODE_ADDR 0xDFF1FC
245
246
#endif // #ifndef BOARD_H
247
#endif
Generated by
1.8.11