17 KiB
17 KiB
1 | register_name | enum_name | bits | bit_name | value | mask | description |
---|---|---|---|---|---|---|---|
2 | DISPCNT | 31 | obj_extended_palette | 1 | |||
3 | DISPCNT | 30 | bg_extended_palette | 1 | |||
4 | DISPCNT | 29-27 | bg_screen_base_offset | 0b111 | |||
5 | DISPCNT | 26-24 | bg_character_base_offset | 0b111 | |||
6 | DISPCNT | 23 | obj_processing_during_h_blank_period | 1 | |||
7 | DISPCNT | obj_vram_capacity | 22 | 128kb | 0 | ||
8 | DISPCNT | obj_vram_capacity | 22 | 256kb | 1 | ||
9 | DISPCNT | character_vram_capacity | 21-20 | 32kb | 0b00 | ||
10 | DISPCNT | character_vram_capacity | 21-20 | 64kb | 0b01 | ||
11 | DISPCNT | character_vram_capacity | 21-20 | 128kb | 0b10 | ||
12 | DISPCNT | character_vram_capacity | 21-20 | 256kb | 0b11 | ||
13 | DISPCNT | display_vram_block | 19-18 | vram_a | 0b00 | ||
14 | DISPCNT | display_vram_block | 19-18 | vram_b | 0b01 | ||
15 | DISPCNT | display_vram_block | 19-18 | vram_c | 0b10 | ||
16 | DISPCNT | display_vram_block | 19-18 | vram_d | 0b11 | ||
17 | DISPCNT | display_mode | 17-16 | display_off | 0 | ||
18 | DISPCNT | display_mode | 17-16 | graphics_display | 1 | ||
19 | DISPCNT | display_mode | 17-16 | vram_display | 2 | ||
20 | DISPCNT | display_mode | 17-16 | main_memory_display | 3 | ||
21 | DISPCNT | obj_window | 15 | disable | 0 | ||
22 | DISPCNT | obj_window | 15 | enable | 1 | ||
23 | DISPCNT | window_1 | 14 | disable | 0 | ||
24 | DISPCNT | window_1 | 14 | enable | 1 | ||
25 | DISPCNT | window_0 | 13 | disable | 0 | ||
26 | DISPCNT | window_0 | 13 | enable | 1 | ||
27 | DISPCNT | obj | 12 | disable | 0 | ||
28 | DISPCNT | obj | 12 | enable | 1 | ||
29 | DISPCNT | bg3 | 11 | disable | 0 | ||
30 | DISPCNT | bg3 | 11 | enable | 1 | ||
31 | DISPCNT | bg2 | 10 | disable | 0 | ||
32 | DISPCNT | bg2 | 10 | enable | 1 | ||
33 | DISPCNT | bg1 | 9 | disable | 0 | ||
34 | DISPCNT | bg1 | 9 | enable | 1 | ||
35 | DISPCNT | bg0 | 8 | disable | 0 | ||
36 | DISPCNT | bg0 | 8 | enable | 1 | ||
37 | DISPCNT | 7 | 2d_display_forced_blank | 1 | |||
38 | DISPCNT | bitmap_obj_mapping_mode | 6-5 | 2d_mapping_with_128_horizontal_dots | 0b00 | ||
39 | DISPCNT | bitmap_obj_mapping_mode | 6-5 | 2d_mapping_with_256_horizontal_dots | 0b01 | ||
40 | DISPCNT | bitmap_obj_mapping_mode | 6-5 | 1d_mapping | 0b10 | ||
41 | DISPCNT | character_obj_mapping_mode | 4 | 2d_mapping | 0 | ||
42 | DISPCNT | character_obj_mapping_mode | 4 | 1d_mapping | 1 | ||
43 | DISPCNT | display_selection_for_bg0 | 3 | 2d_graphics | 0 | ||
44 | DISPCNT | display_selection_for_bg0 | 3 | 3d_graphics | 1 | ||
45 | DISPCNT | bg_mode | 2-0 | text0_text1_text2_text3 | 0 | ||
46 | DISPCNT | bg_mode | 2-0 | text0_text1_text2_affine3 | 1 | ||
47 | DISPCNT | bg_mode | 2-0 | text0_text1_affine2_affine3 | 2 | ||
48 | DISPCNT | bg_mode | 2-0 | text0_text1_text2_extended3 | 3 | ||
49 | DISPCNT | bg_mode | 2-0 | text0_text1_affine2_extended3 | 4 | ||
50 | DISPCNT | bg_mode | 2-0 | text0_text1_extended2_extended3 | 5 | ||
51 | DISPCNT | bg_mode | 2-0 | 3d_large_screen_256_color_bitmap | 6 | ||
52 | |||||||
53 | DISPSTAT | v_counter_match_interrupt_request | 5 | disable | 0 | ||
54 | DISPSTAT | v_counter_match_interrupt_request | 5 | enable | 1 | ||
55 | DISPSTAT | h_blank_interrupt_request | 4 | disable | 0 | ||
56 | DISPSTAT | h_blank_interrupt_request | 4 | enable | 1 | ||
57 | DISPSTAT | v_blank_interrupt_request | 3 | disable | 0 | ||
58 | DISPSTAT | v_blank_interrupt_request | 3 | enable | 1 | ||
59 | DISPSTAT | v_counter_match_detection | 2 | outside_a_matching_interval | 0 | ||
60 | DISPSTAT | v_counter_match_detection | 2 | during_a_matching_interval | 1 | ||
61 | DISPSTAT | h_blank_detection | 1 | outside_h_blank_interval | 0 | ||
62 | DISPSTAT | h_blank_detection | 1 | during_h_blank_interval | 1 | ||
63 | DISPSTAT | v_blank_detection | 0 | outside_v_blank_interval | 0 | ||
64 | DISPSTAT | v_blank_detection | 0 | during_v_blank_interval | 1 | ||
65 | |||||||
66 | VCOUNT | 8-0 | v_counter_value | ||||
67 | |||||||
68 | BG0CNT | screen_size | 15-14 | 256x256 | 0b00 | ||
69 | BG0CNT | screen_size | 15-14 | 512x256 | 0b01 | ||
70 | BG0CNT | screen_size | 15-14 | 256x512 | 0b10 | ||
71 | BG0CNT | screen_size | 15-14 | 512x512 | 0b11 | ||
72 | BG0CNT | bg_extended_palette_slot | 13 | slot_0 | 0 | ||
73 | BG0CNT | bg_extended_palette_slot | 13 | slot_2 | 1 | ||
74 | BG0CNT | 12-8 | screen_base_block | 0b11111 | |||
75 | BG0CNT | color_mode | 7 | 16_color_mode | 0 | ||
76 | BG0CNT | color_mode | 7 | 256_color_mode | 1 | ||
77 | BG0CNT | mosaic | 6 | disable | 0 | ||
78 | BG0CNT | mosaic | 6 | enable | 1 | ||
79 | BG0CNT | 5-2 | character_base_block | 0b1111 | |||
80 | BG0CNT | 1-0 | priority | 0b11 | |||
81 | |||||||
82 | BG1CNT | screen_size | 15-14 | 256x256 | 0b00 | ||
83 | BG1CNT | screen_size | 15-14 | 512x256 | 0b01 | ||
84 | BG1CNT | screen_size | 15-14 | 256x512 | 0b10 | ||
85 | BG1CNT | screen_size | 15-14 | 512x512 | 0b11 | ||
86 | BG1CNT | bg_extended_palette_slot | 13 | slot_1 | 0 | ||
87 | BG1CNT | bg_extended_palette_slot | 13 | slot_3 | 1 | ||
88 | BG1CNT | 12-8 | screen_base_block | 0b11111 | |||
89 | BG1CNT | color_mode | 7 | 16_color_mode | 0 | ||
90 | BG1CNT | color_mode | 7 | 256_color_mode | 1 | ||
91 | BG1CNT | mosaic | 6 | disable | 0 | ||
92 | BG1CNT | mosaic | 6 | enable | 1 | ||
93 | BG1CNT | 5-2 | character_base_block | 0b1111 | |||
94 | BG1CNT | 1-0 | priority | 0b11 | |||
95 | |||||||
96 | BG2CNT | screen_size | 15-14 | 256x256 | 0b00 | ||
97 | BG2CNT | screen_size | 15-14 | 512x256 | 0b01 | ||
98 | BG2CNT | screen_size | 15-14 | 256x512 | 0b10 | ||
99 | BG2CNT | screen_size | 15-14 | 512x512 | 0b11 | ||
100 | BG2CNT | out_of_area_processing | 13 | transparent_display | 0 | ||
101 | BG2CNT | out_of_area_processing | 13 | wraparound_display | 1 | ||
102 | BG2CNT | 12-8 | screen_base_block | 0b11111 | |||
103 | BG2CNT | color_mode | 7 | 16_color_mode | 0 | ||
104 | BG2CNT | color_mode | 7 | 256_color_mode | 1 | ||
105 | BG2CNT | mosaic | 6 | disable | 0 | ||
106 | BG2CNT | mosaic | 6 | enable | 1 | ||
107 | BG2CNT | 5-2 | character_base_block | 0b1111 | |||
108 | BG2CNT | 1-0 | priority | 0b11 | |||
109 | |||||||
110 | BG3CNT | screen_size | 15-14 | 256x256 | 0b00 | ||
111 | BG3CNT | screen_size | 15-14 | 512x256 | 0b01 | ||
112 | BG3CNT | screen_size | 15-14 | 256x512 | 0b10 | ||
113 | BG3CNT | screen_size | 15-14 | 512x512 | 0b11 | ||
114 | BG3CNT | out_of_area_processing | 13 | transparent_display | 0 | ||
115 | BG3CNT | out_of_area_processing | 13 | wraparound_display | 1 | ||
116 | BG3CNT | 12-8 | screen_base_block | 0b11111 | |||
117 | BG3CNT | color_mode | 7 | 16_color_mode | 0 | ||
118 | BG3CNT | color_mode | 7 | 256_color_mode | 1 | ||
119 | BG3CNT | mosaic | 6 | disable | 0 | ||
120 | BG3CNT | mosaic | 6 | enable | 1 | ||
121 | BG3CNT | 5-2 | character_base_block | 0b1111 | |||
122 | BG3CNT | 1-0 | priority | 0b11 | |||
123 | |||||||
124 | POWCNT | lcd_output_destination | 15 | a_to_lower__b_to_upper | 0 | ||
125 | POWCNT | lcd_output_destination | 15 | a_to_upper__b_to_lower | 1 | ||
126 | POWCNT | 2d_graphics_engine_b | 9 | disable | 0 | ||
127 | POWCNT | 2d_graphics_engine_b | 9 | enable | 1 | ||
128 | POWCNT | geometry_engine | 3 | disable | 0 | ||
129 | POWCNT | geometry_engine | 3 | enable | 1 | ||
130 | POWCNT | rendering_engine | 2 | disable | 0 | ||
131 | POWCNT | rendering_engine | 2 | enable | 1 | ||
132 | POWCNT | 2d_graphics_engine_a | 1 | disable | 0 | ||
133 | POWCNT | 2d_graphics_engine_a | 1 | enable | 1 | ||
134 | POWCNT | lcd | 0 | disable | 0 | ||
135 | POWCNT | lcd | 0 | enable | 1 | ||
136 | |||||||
137 | RDLINES_COUNT | 5-0 | rendered_lines_min | ||||
138 | |||||||
139 | ALPHA_TEST_REF | 4-0 | comparison_value | 0b11111 | |||
140 | |||||||
141 | CLEAR_COLOR | 29-24 | clear_polygon_id | 0b111111 | |||
142 | CLEAR_COLOR | 20-16 | alpha_value | 0b11111 | |||
143 | CLEAR_COLOR | 15 | fog_enable | 1 | |||
144 | CLEAR_COLOR | 14-10 | blue | 0b11111 | |||
145 | CLEAR_COLOR | 9-5 | green | 0b11111 | |||
146 | CLEAR_COLOR | 4-0 | red | 0b11111 | |||
147 | |||||||
148 | CLEAR_DEPTH | 14-0 | value | 0x7fff | |||
149 | |||||||
150 | CLRIMAGE_OFFSET | 15-8 | y_offset | 0xff | |||
151 | CLRIMAGE_OFFSET | 7-0 | x_offset | 0xff | |||
152 | |||||||
153 | DISP3DCNT | clear_image | 14 | disable | 0 | ||
154 | DISP3DCNT | clear_image | 14 | enable | 1 | ||
155 | DISP3DCNT | 13 | polygon_list_ram_and_vertex_ram_overflow | 1 | |||
156 | DISP3DCNT | 12 | color_buffer_underflow | 1 | |||
157 | DISP3DCNT | 11-8 | fog_shift | 0b1111 | |||
158 | DISP3DCNT | fog_master | 7 | disable | 0 | ||
159 | DISP3DCNT | fog_master | 7 | enable | 1 | ||
160 | DISP3DCNT | fog_mode | 6 | blending_using_pixel_color_value_and_alpha_value | 0 | ||
161 | DISP3DCNT | fog_mode | 6 | blending_using_only_pixel_alpha_value | 1 | ||
162 | DISP3DCNT | edge_marking | 5 | disable | 0 | ||
163 | DISP3DCNT | edge_marking | 5 | enable | 1 | ||
164 | DISP3DCNT | anti_aliasing | 4 | disable | 0 | ||
165 | DISP3DCNT | anti_aliasing | 4 | enable | 1 | ||
166 | DISP3DCNT | alpha_blending | 3 | disable | 0 | ||
167 | DISP3DCNT | alpha_blending | 3 | enable | 1 | ||
168 | DISP3DCNT | alpha_test | 2 | disable | 0 | ||
169 | DISP3DCNT | alpha_test | 2 | enable | 1 | ||
170 | DISP3DCNT | toon_highlight | 1 | toon_shading | 0 | ||
171 | DISP3DCNT | toon_highlight | 1 | highlight_shading | 1 | ||
172 | DISP3DCNT | texture_mapping | 0 | disable | 0 | ||
173 | DISP3DCNT | texture_mapping | 0 | enable | 1 | ||
174 | |||||||
175 | MTX_MODE | matrix_mode | 1-0 | projection | 0b00 | ||
176 | MTX_MODE | matrix_mode | 1-0 | position | 0b01 | ||
177 | MTX_MODE | matrix_mode | 1-0 | position_and_vector | 0b10 | ||
178 | MTX_MODE | matrix_mode | 1-0 | texture | 0b11 | ||
179 | |||||||
180 | MTX_POP | 5-0 | number_of_pops | 0b111111 | |||
181 | |||||||
182 | MTX_STORE | 4-0 | index | 0b11111 | |||
183 | |||||||
184 | MTX_RESTORE | 4-0 | position | 0b11111 | |||
185 | |||||||
186 | NORMAL | 29-20 | z_component | 0x7ff | |||
187 | NORMAL | 19-10 | y_component | 0x7ff | |||
188 | NORMAL | 9-0 | x_component | 0x7ff | |||
189 | |||||||
190 | TEXCOORD | 31-16 | t_coordinate | 0xffff | |||
191 | TEXCOORD | 15-0 | x_coordinate | 0xffff | |||
192 | |||||||
193 | VTX_16 | 0 | 31-16 | y_coordinate | 0xffff | ||
194 | VTX_16 | 0 | 15-0 | x_coordinate | 0xffff | ||
195 | VTX_16 | 1 | 15-0 | z_coordinate | 0xffff | ||
196 | |||||||
197 | VTX_10 | 29-20 | z_coordinate | 0x7ff | |||
198 | VTX_10 | 19-10 | y_coordinate | 0x7ff | |||
199 | VTX_10 | 9-0 | x_coordinate | 0x7ff | |||
200 | |||||||
201 | VTX_XY | 31-16 | y_coordinate | 0xffff | |||
202 | VTX_XY | 15-0 | x_coordinate | 0xffff | |||
203 | |||||||
204 | VTX_XZ | 31-16 | z_coordinate | 0xffff | |||
205 | VTX_XZ | 15-0 | z_coordinate | 0xffff | |||
206 | |||||||
207 | VTX_YZ | 31-16 | z_coordinate | 0xffff | |||
208 | VTX_YZ | 15-0 | y_coordinate | 0xffff | |||
209 | |||||||
210 | VTX_DIFF | 29-20 | z_coordinate | 0x7ff | |||
211 | VTX_DIFF | 19-10 | y_coordinate | 0x7ff | |||
212 | VTX_DIFF | 9-0 | x_coordinate | 0x7ff | |||
213 | |||||||
214 | POLYGON_ATTR | 29-24 | polygon_id | 0b111111 | |||
215 | POLYGON_ATTR | 20-16 | alpha_value | 0b11111 | |||
216 | POLYGON_ATTR | fog | 15 | disable | 0 | ||
217 | POLYGON_ATTR | fog | 15 | enable | 1 | ||
218 | POLYGON_ATTR | depth_test_condition | 14 | render_when_depth_value_is_smaller_than_buffer_value | 0 | ||
219 | POLYGON_ATTR | depth_test_condition | 14 | render_when_depth_value_is_equal_to_buffer_value | 1 | ||
220 | POLYGON_ATTR | one_dot_polygon | 13 | do_not_render | 0 | ||
221 | POLYGON_ATTR | one_dot_polygon | 13 | render | 1 | ||
222 | POLYGON_ATTR | far_plane_intersection | 12 | delete | 0 | ||
223 | POLYGON_ATTR | far_plane_intersection | 12 | clip | 1 | ||
224 | POLYGON_ATTR | translucent_depth_value_update | 11 | do_not_update | 0 | ||
225 | POLYGON_ATTR | translucent_depth_value_update | 11 | update | 1 | ||
226 | POLYGON_ATTR | render_front_surface | 7 | disable | 0 | ||
227 | POLYGON_ATTR | render_front_surface | 7 | enable | 1 | ||
228 | POLYGON_ATTR | render_back_surface | 6 | disable | 0 | ||
229 | POLYGON_ATTR | render_back_surface | 6 | enable | 1 | ||
230 | POLYGON_ATTR | polygon_mode | 5-4 | modulation | 0b00 | ||
231 | POLYGON_ATTR | polygon_mode | 5-4 | decal | 0b01 | ||
232 | POLYGON_ATTR | polygon_mode | 5-4 | toon | 0b10 | ||
233 | POLYGON_ATTR | polygon_mode | 5-4 | shadow | 0b11 | ||
234 | POLYGON_ATTR | light_3 | 3 | disable | 0 | ||
235 | POLYGON_ATTR | light_3 | 3 | enable | 1 | ||
236 | POLYGON_ATTR | light_2 | 2 | disable | 0 | ||
237 | POLYGON_ATTR | light_2 | 2 | enable | 1 | ||
238 | POLYGON_ATTR | light_1 | 1 | disable | 0 | ||
239 | POLYGON_ATTR | light_1 | 1 | enable | 1 | ||
240 | POLYGON_ATTR | light_0 | 0 | disable | 0 | ||
241 | POLYGON_ATTR | light_0 | 0 | enable | 1 | ||
242 | |||||||
243 | TEXIMAGE_PARAM | texture_coordinate_transformation_mode | 31-30 | do_not_transform_texture_coordinates | 0b00 | ||
244 | TEXIMAGE_PARAM | texture_coordinate_transformation_mode | 31-30 | texcoord_source | 0b01 | ||
245 | TEXIMAGE_PARAM | texture_coordinate_transformation_mode | 31-30 | normal_source | 0b10 | ||
246 | TEXIMAGE_PARAM | texture_coordinate_transformation_mode | 31-30 | vextex_source | 0b11 | ||
247 | TEXIMAGE_PARAM | palette_color0_transparency | 29 | palette_setting | 0 | ||
248 | TEXIMAGE_PARAM | palette_color0_transparency | 29 | always_transparent | 1 | ||
249 | TEXIMAGE_PARAM | texture_format | 28-26 | no_texture | 0 | ||
250 | TEXIMAGE_PARAM | texture_format | 28-26 | a3i5_translucent | 1 | ||
251 | TEXIMAGE_PARAM | texture_format | 28-26 | 4_color_palette | 2 | ||
252 | TEXIMAGE_PARAM | texture_format | 28-26 | 16_color_palette | 3 | ||
253 | TEXIMAGE_PARAM | texture_format | 28-26 | 256_color_palette | 4 | ||
254 | TEXIMAGE_PARAM | texture_format | 28-26 | 4x4_texel_compressed | 5 | ||
255 | TEXIMAGE_PARAM | texture_format | 28-26 | a5i3_translucent | 6 | ||
256 | TEXIMAGE_PARAM | texture_format | 28-26 | direct | 7 | ||
257 | TEXIMAGE_PARAM | t_size | 25-23 | 8_texels | 0 | ||
258 | TEXIMAGE_PARAM | t_size | 25-23 | 16_texels | 1 | ||
259 | TEXIMAGE_PARAM | t_size | 25-23 | 32_texels | 2 | ||
260 | TEXIMAGE_PARAM | t_size | 25-23 | 64_texels | 3 | ||
261 | TEXIMAGE_PARAM | t_size | 25-23 | 128_texels | 4 | ||
262 | TEXIMAGE_PARAM | t_size | 25-23 | 256_texels | 5 | ||
263 | TEXIMAGE_PARAM | t_size | 25-23 | 512_texels | 6 | ||
264 | TEXIMAGE_PARAM | t_size | 25-23 | 1024_texels | 7 | ||
265 | TEXIMAGE_PARAM | s_size | 22-20 | 8_texels | 0 | ||
266 | TEXIMAGE_PARAM | s_size | 22-20 | 16_texels | 1 | ||
267 | TEXIMAGE_PARAM | s_size | 22-20 | 32_texels | 2 | ||
268 | TEXIMAGE_PARAM | s_size | 22-20 | 64_texels | 3 | ||
269 | TEXIMAGE_PARAM | s_size | 22-20 | 128_texels | 4 | ||
270 | TEXIMAGE_PARAM | s_size | 22-20 | 256_texels | 5 | ||
271 | TEXIMAGE_PARAM | s_size | 22-20 | 512_texels | 6 | ||
272 | TEXIMAGE_PARAM | s_size | 22-20 | 1024_texels | 7 | ||
273 | TEXIMAGE_PARAM | flip_t | 19 | do_not_flip | 0 | ||
274 | TEXIMAGE_PARAM | flip_t | 19 | flip | 1 | ||
275 | TEXIMAGE_PARAM | flip_s | 18 | do_not_flip | 0 | ||
276 | TEXIMAGE_PARAM | flip_s | 18 | flip | 1 | ||
277 | TEXIMAGE_PARAM | repeat_t | 17 | do_not_repeat | 0 | ||
278 | TEXIMAGE_PARAM | repeat_t | 17 | repeat | 1 | ||
279 | TEXIMAGE_PARAM | repeat_s | 16 | do_not_repeat | 0 | ||
280 | TEXIMAGE_PARAM | repeat_s | 16 | repeat | 1 | ||
281 | TEXIMAGE_PARAM | 15-0 | texture_starting_address | 0xffff | |||
282 | |||||||
283 | TEXPLTT_BASE | 12-0 | base_address | 0x1fff | |||
284 | |||||||
285 | DIF_AMB | 30-26 | ambient_blue | 0b11111 | |||
286 | DIF_AMB | 25-21 | ambient_green | 0b11111 | |||
287 | DIF_AMB | 20-16 | ambient_red | 0b11111 | |||
288 | DIF_AMB | vertex_color | 15 | do_not_set_vertex_color | 0 | ||
289 | DIF_AMB | vertex_color | 15 | set_diffuse_reflection_color_as_vertex_color | 1 | ||
290 | DIF_AMB | 14-10 | diffuse_blue | 0b11111 | |||
291 | DIF_AMB | 9-5 | diffuse_green | 0b11111 | |||
292 | DIF_AMB | 4-0 | diffuse_red | 0b11111 | |||
293 | |||||||
294 | SPE_EMI | 30-26 | emission_blue | 0b11111 | |||
295 | SPE_EMI | 25-21 | emission_green | 0b11111 | |||
296 | SPE_EMI | 20-16 | emission_red | 0b11111 | |||
297 | SPE_EMI | shininess | 15 | disable | 0 | ||
298 | SPE_EMI | shininess | 15 | enable | 1 | ||
299 | SPE_EMI | 14-10 | specular_blue | 0b11111 | |||
300 | SPE_EMI | 9-5 | specular_green | 0b11111 | |||
301 | SPE_EMI | 4-0 | specular_red | 0b11111 | |||
302 | |||||||
303 | LIGHT_VECTOR | 31-30 | light_number | 0b11 | |||
304 | LIGHT_VECTOR | 29-20 | decimal_z | 0x3ff | |||
305 | LIGHT_VECTOR | 19-10 | decimal_y | 0x3ff | |||
306 | LIGHT_VECTOR | 9-0 | decimal_x | 0x3ff | |||
307 | |||||||
308 | LIGHT_COLOR | 31-30 | light_number | 0b11 | |||
309 | LIGHT_COLOR | 14-10 | blue | 0b11111 | |||
310 | LIGHT_COLOR | 9-5 | green | 0b11111 | |||
311 | LIGHT_COLOR | 4-0 | red | 0b11111 | |||
312 | |||||||
313 | SHININESS | 31-24 | 4x_3 | 0xff | |||
314 | SHININESS | 23-16 | 4x_2 | 0xff | |||
315 | SHININESS | 15-8 | 4x_1 | 0xff | |||
316 | SHININESS | 7-0 | 4x_0 | 0xff | |||
317 | |||||||
318 | BEGIN_VTXS | type | 1-0 | triangle | 0b00 | ||
319 | BEGIN_VTXS | type | 1-0 | quadrilateral | 0b01 | ||
320 | BEGIN_VTXS | type | 1-0 | triangle_strip | 0b10 | ||
321 | BEGIN_VTXS | type | 1-0 | quadrilateral_strip | 0b11 | ||
322 | |||||||
323 | SWAP_BUFFERS | depth_buffering | 1 | z_value | 0 | ||
324 | SWAP_BUFFERS | depth_buffering | 1 | w_value | 1 | ||
325 | SWAP_BUFFERS | translucent_polygon_y_sorting | 0 | auto_sort | 0 | ||
326 | SWAP_BUFFERS | translucent_polygon_y_sorting | 0 | manual_sort | 1 | ||
327 | |||||||
328 | VIEWPORT | 31-24 | y2 | 0xff | |||
329 | VIEWPORT | 23-16 | x2 | 0xff | |||
330 | VIEWPORT | 15-8 | y1 | 0xff | |||
331 | VIEWPORT | 7-0 | x1 | 0xff | |||
332 | |||||||
333 | BOX_TEST | 0 | 31-16 | y_coordinate | 0xffff | ||
334 | BOX_TEST | 0 | 15-0 | x_coordinate | 0xffff | ||
335 | BOX_TEST | 1 | 31-16 | width | 0xffff | ||
336 | BOX_TEST | 1 | 15-0 | z_coordinate | 0xffff | ||
337 | BOX_TEST | 2 | 31-16 | depth | 0xffff | ||
338 | BOX_TEST | 2 | 15-0 | height | 0xffff | ||
339 | |||||||
340 | POS_TEST | 0 | 31-16 | y_coordinate | 0xffff | ||
341 | POS_TEST | 0 | 15-0 | x_coordinate | 0xffff | ||
342 | POS_TEST | 1 | 15-0 | z_coordinate | 0xffff | ||
343 | |||||||
344 | VEC_TEST | 29-20 | decimal_z | 0x3ff | |||
345 | VEC_TEST | 19-10 | decimal_y | 0x3ff | |||
346 | VEC_TEST | 9-0 | decimal_x | 0x3ff | |||
347 | |||||||
348 | GXSTAT | command_fifo_interrupt_condition | 31-30 | disable | 0b00 | ||
349 | GXSTAT | command_fifo_interrupt_condition | 31-30 | half_full | 0b01 | ||
350 | GXSTAT | command_fifo_interrupt_condition | 31-30 | empty | 0b10 | ||
351 | GXSTAT | 27 | geometry_engine_busy | ||||
352 | GXSTAT | fifo_status | 26 | empty | |||
353 | GXSTAT | fifo_status | 25 | less_than_half_full | |||
354 | GXSTAT | fifo_status | 24 | full | |||
355 | GXSTAT | 23-16 | command_fifo_count | ||||
356 | GXSTAT | matrix_stack_status | 15 | stack_overflow_or_underflow | |||
357 | GXSTAT | matrix_stack_status | 14 | stack_busy | |||
358 | GXSTAT | matrix_stack_status | 13 | projection_matrix_stack_level | |||
359 | GXSTAT | matrix_stack_status | 12-8 | position_and_vector_matrix_stack_level | |||
360 | GXSTAT | 1 | test_status | ||||
361 | GXSTAT | 0 | test_busy | ||||
362 | |||||||
363 | LISTRAM_COUNT | 11-0 | counter | ||||
364 | |||||||
365 | VTXRAM_COUNT | 12-0 | counter | ||||
366 | |||||||
367 | OBJ_ATTRIBUTE_0 | obj_shape | 15-14 | square | 0b00 | ||
368 | OBJ_ATTRIBUTE_0 | obj_shape | 15-14 | long_rectangle | 0b01 | ||
369 | OBJ_ATTRIBUTE_0 | obj_shape | 15-14 | tall_rectangle | 0b10 | ||
370 | OBJ_ATTRIBUTE_0 | color_mode | 13 | 16_color_mode | 0 | ||
371 | OBJ_ATTRIBUTE_0 | color_mode | 13 | 256_color_mode | 1 | ||
372 | OBJ_ATTRIBUTE_0 | mosaic | 12 | off | 0 | ||
373 | OBJ_ATTRIBUTE_0 | mosaic | 12 | on | 1 | ||
374 | OBJ_ATTRIBUTE_0 | obj_mode | 11-10 | normal | 0b00 | ||
375 | OBJ_ATTRIBUTE_0 | obj_mode | 11-10 | translucent | 0b01 | ||
376 | OBJ_ATTRIBUTE_0 | obj_mode | 11-10 | obj_window | 0b10 | ||
377 | OBJ_ATTRIBUTE_0 | obj_mode | 11-10 | bitmap_obj | 0b11 | ||
378 | OBJ_ATTRIBUTE_0 | double_size | 9 | disable | 0 | ||
379 | OBJ_ATTRIBUTE_0 | double_size | 9 | enable | 1 | ||
380 | OBJ_ATTRIBUTE_0 | affine_transformation | 8 | disable | 0 | ||
381 | OBJ_ATTRIBUTE_0 | affine_transformation | 8 | enable | 1 | ||
382 | OBJ_ATTRIBUTE_0 | 7-0 | y_coordinate | 0xff | |||
383 | |||||||
384 | OBJ_ATTRIBUTE_1 | 15-14 | obj_size | 0b11 | |||
385 | OBJ_ATTRIBUTE_1 | 13-9 | affine_transformation_parameter | 0b11111 | |||
386 | OBJ_ATTRIBUTE_1 | 8-0 | x_coordinate | 0x1ff | |||
387 | |||||||
388 | OBJ_ATTRIBUTE_2 | 15-12 | color_parameter | 0b1111 | |||
389 | OBJ_ATTRIBUTE_2 | 11-10 | display_priority | 0b11 | |||
390 | OBJ_ATTRIBUTE_2 | 9-0 | character_name | 0x3ff |