nds/registers/graphics_engine_bits.csv
2024-09-04 22:03:27 -05:00

19 KiB

1register_nameenum_namebitsbit_namevaluemaskdescription
2DISPCNT31obj_extended_palette1
3DISPCNT30bg_extended_palette1
4DISPCNT29-27bg_screen_base_offset0b111
5DISPCNT26-24bg_character_base_offset0b111
6DISPCNT23obj_processing_during_h_blank_period1
7DISPCNTobj_vram_capacity22128kb0
8DISPCNTobj_vram_capacity22256kb1
9DISPCNTcharacter_vram_capacity21-2032kb0b00
10DISPCNTcharacter_vram_capacity21-2064kb0b01
11DISPCNTcharacter_vram_capacity21-20128kb0b10
12DISPCNTcharacter_vram_capacity21-20256kb0b11
13DISPCNTdisplay_vram_block19-18vram_a0b00
14DISPCNTdisplay_vram_block19-18vram_b0b01
15DISPCNTdisplay_vram_block19-18vram_c0b10
16DISPCNTdisplay_vram_block19-18vram_d0b11
17DISPCNTdisplay_mode17-16display_off0
18DISPCNTdisplay_mode17-16graphics_display1
19DISPCNTdisplay_mode17-16vram_display2
20DISPCNTdisplay_mode17-16main_memory_display3
21DISPCNTobj_window15disable0
22DISPCNTobj_window15enable1
23DISPCNTwindow_114disable0
24DISPCNTwindow_114enable1
25DISPCNTwindow_013disable0
26DISPCNTwindow_013enable1
27DISPCNTobj12disable0
28DISPCNTobj12enable1
29DISPCNTbg311disable0
30DISPCNTbg311enable1
31DISPCNTbg210disable0
32DISPCNTbg210enable1
33DISPCNTbg19disable0
34DISPCNTbg19enable1
35DISPCNTbg08disable0
36DISPCNTbg08enable1
37DISPCNT72d_display_forced_blank1
38DISPCNTbitmap_obj_mapping_mode6-52d_mapping_with_128_horizontal_dots0b00
39DISPCNTbitmap_obj_mapping_mode6-52d_mapping_with_256_horizontal_dots0b01
40DISPCNTbitmap_obj_mapping_mode6-51d_mapping0b10
41DISPCNTcharacter_obj_mapping_mode42d_mapping0
42DISPCNTcharacter_obj_mapping_mode41d_mapping1
43DISPCNTdisplay_selection_for_bg032d_graphics0
44DISPCNTdisplay_selection_for_bg033d_graphics1
45DISPCNTbg_mode2-0text0_text1_text2_text30
46DISPCNTbg_mode2-0text0_text1_text2_affine31
47DISPCNTbg_mode2-0text0_text1_affine2_affine32
48DISPCNTbg_mode2-0text0_text1_text2_extended33
49DISPCNTbg_mode2-0text0_text1_affine2_extended34
50DISPCNTbg_mode2-0text0_text1_extended2_extended35
51DISPCNTbg_mode2-03d_large_screen_256_color_bitmap6
52
53DISPSTATv_counter_match_interrupt_request5disable0
54DISPSTATv_counter_match_interrupt_request5enable1
55DISPSTATh_blank_interrupt_request4disable0
56DISPSTATh_blank_interrupt_request4enable1
57DISPSTATv_blank_interrupt_request3disable0
58DISPSTATv_blank_interrupt_request3enable1
59DISPSTATv_counter_match_detection2outside_a_matching_interval0
60DISPSTATv_counter_match_detection2during_a_matching_interval1
61DISPSTATh_blank_detection1outside_h_blank_interval0
62DISPSTATh_blank_detection1during_h_blank_interval1
63DISPSTATv_blank_detection0outside_v_blank_interval0
64DISPSTATv_blank_detection0during_v_blank_interval1
65
66VCOUNT8-0v_counter_value
67
68BG0CNTscreen_size15-14256x2560b00
69BG0CNTscreen_size15-14512x2560b01
70BG0CNTscreen_size15-14256x5120b10
71BG0CNTscreen_size15-14512x5120b11
72BG0CNTbg_extended_palette_slot13slot_00
73BG0CNTbg_extended_palette_slot13slot_21
74BG0CNT12-8screen_base_block0b11111
75BG0CNTcolor_mode716_color_mode0
76BG0CNTcolor_mode7256_color_mode1
77BG0CNTmosaic6disable0
78BG0CNTmosaic6enable1
79BG0CNT5-2character_base_block0b1111
80BG0CNT1-0priority0b11
81
82BG1CNTscreen_size15-14256x2560b00
83BG1CNTscreen_size15-14512x2560b01
84BG1CNTscreen_size15-14256x5120b10
85BG1CNTscreen_size15-14512x5120b11
86BG1CNTbg_extended_palette_slot13slot_10
87BG1CNTbg_extended_palette_slot13slot_31
88BG1CNT12-8screen_base_block0b11111
89BG1CNTcolor_mode716_color_mode0
90BG1CNTcolor_mode7256_color_mode1
91BG1CNTmosaic6disable0
92BG1CNTmosaic6enable1
93BG1CNT5-2character_base_block0b1111
94BG1CNT1-0priority0b11
95
96BG2CNTscreen_size15-14256x2560b00
97BG2CNTscreen_size15-14512x2560b01
98BG2CNTscreen_size15-14256x5120b10
99BG2CNTscreen_size15-14512x5120b11
100BG2CNTout_of_area_processing13transparent_display0
101BG2CNTout_of_area_processing13wraparound_display1
102BG2CNT12-8screen_base_block0b11111
103BG2CNTcolor_mode716_color_mode0
104BG2CNTcolor_mode7256_color_mode1
105BG2CNTmosaic6disable0
106BG2CNTmosaic6enable1
107BG2CNT5-2character_base_block0b1111
108BG2CNT1-0priority0b11
109
110BG3CNTscreen_size15-14256x2560b00
111BG3CNTscreen_size15-14512x2560b01
112BG3CNTscreen_size15-14256x5120b10
113BG3CNTscreen_size15-14512x5120b11
114BG3CNTout_of_area_processing13transparent_display0
115BG3CNTout_of_area_processing13wraparound_display1
116BG3CNT12-8screen_base_block0b11111
117BG3CNTcolor_mode716_color_mode0
118BG3CNTcolor_mode7256_color_mode1
119BG3CNTmosaic6disable0
120BG3CNTmosaic6enable1
121BG3CNT5-2character_base_block0b1111
122BG3CNT1-0priority0b11
123
124VRAMCNTvram_d31disable0
125VRAMCNTvram_d31enable1
126VRAMCNTvram_d28-27ofs0b11
127VRAMCNTvram_d26-24mst0b111
128VRAMCNTvram_c23disable0
129VRAMCNTvram_c23enable1
130VRAMCNTvram_c20-19ofs0b11
131VRAMCNTvram_c18-16mst0b111
132VRAMCNTvram_b15disable0
133VRAMCNTvram_b15enable1
134VRAMCNTvram_b12-11ofs0b11
135VRAMCNTvram_b9-8mst0b11
136VRAMCNTvram_a7disable0
137VRAMCNTvram_a7enable1
138VRAMCNTvram_a4-3ofs0b11
139VRAMCNTvram_a1-0mst0b11
140
141WVRAMCNTwram25-24bank0b11
142WVRAMCNTvram_g23disable0
143WVRAMCNTvram_g23enable1
144WVRAMCNTvram_g20-19ofs0b11
145WVRAMCNTvram_g18-16mst0b111
146WVRAMCNTvram_f15disable0
147WVRAMCNTvram_f15enable1
148WVRAMCNTvram_f12-11ofs0b11
149WVRAMCNTvram_f10-8mst0b111
150WVRAMCNTvram_e7disable0
151WVRAMCNTvram_e7enable1
152WVRAMCNTvram_e2-0mst0b111
153
154VRAM_HI_CNTvram_i15disable0
155VRAM_HI_CNTvram_i15enable1
156VRAM_HI_CNTvram_i9-8mst0b11
157VRAM_HI_CNTvram_h7disable0
158VRAM_HI_CNTvram_h7enable1
159VRAM_HI_CNTvram_h1-0mst0b11
160
161
162POWCNTlcd_output_destination15a_to_lower__b_to_upper0
163POWCNTlcd_output_destination15a_to_upper__b_to_lower1
164POWCNT2d_graphics_engine_b9disable0
165POWCNT2d_graphics_engine_b9enable1
166POWCNTgeometry_engine3disable0
167POWCNTgeometry_engine3enable1
168POWCNTrendering_engine2disable0
169POWCNTrendering_engine2enable1
170POWCNT2d_graphics_engine_a1disable0
171POWCNT2d_graphics_engine_a1enable1
172POWCNTlcd0disable0
173POWCNTlcd0enable1
174
175RDLINES_COUNT5-0rendered_lines_min
176
177ALPHA_TEST_REF4-0comparison_value0b11111
178
179CLEAR_COLOR29-24clear_polygon_id0b111111
180CLEAR_COLOR20-16alpha_value0b11111
181CLEAR_COLOR15fog_enable1
182CLEAR_COLOR14-10blue0b11111
183CLEAR_COLOR9-5green0b11111
184CLEAR_COLOR4-0red0b11111
185
186CLEAR_DEPTH14-0value0x7fff
187
188CLRIMAGE_OFFSET15-8y_offset0xff
189CLRIMAGE_OFFSET7-0x_offset0xff
190
191DISP3DCNTclear_image14disable0
192DISP3DCNTclear_image14enable1
193DISP3DCNT13polygon_list_ram_and_vertex_ram_overflow1
194DISP3DCNT12color_buffer_underflow1
195DISP3DCNT11-8fog_shift0b1111
196DISP3DCNTfog_master7disable0
197DISP3DCNTfog_master7enable1
198DISP3DCNTfog_mode6blending_using_pixel_color_value_and_alpha_value0
199DISP3DCNTfog_mode6blending_using_only_pixel_alpha_value1
200DISP3DCNTedge_marking5disable0
201DISP3DCNTedge_marking5enable1
202DISP3DCNTanti_aliasing4disable0
203DISP3DCNTanti_aliasing4enable1
204DISP3DCNTalpha_blending3disable0
205DISP3DCNTalpha_blending3enable1
206DISP3DCNTalpha_test2disable0
207DISP3DCNTalpha_test2enable1
208DISP3DCNTtoon_highlight1toon_shading0
209DISP3DCNTtoon_highlight1highlight_shading1
210DISP3DCNTtexture_mapping0disable0
211DISP3DCNTtexture_mapping0enable1
212
213MTX_MODEmatrix_mode1-0projection0b00
214MTX_MODEmatrix_mode1-0position0b01
215MTX_MODEmatrix_mode1-0position_and_vector0b10
216MTX_MODEmatrix_mode1-0texture0b11
217
218MTX_POP5-0number_of_pops0b111111
219
220MTX_STORE4-0index0b11111
221
222MTX_RESTORE4-0position0b11111
223
224COLOR14-10blue0b11111
225COLOR9-5green0b11111
226COLOR4-0red0b11111
227
228NORMAL29-20z_component0x7ff
229NORMAL19-10y_component0x7ff
230NORMAL9-0x_component0x7ff
231
232TEXCOORD31-16t_coordinate0xffff
233TEXCOORD15-0s_coordinate0xffff
234
235VTX_16031-16y_coordinate0xffff
236VTX_16015-0x_coordinate0xffff
237VTX_16115-0z_coordinate0xffff
238
239VTX_1029-20z_coordinate0x7ff
240VTX_1019-10y_coordinate0x7ff
241VTX_109-0x_coordinate0x7ff
242
243VTX_XY31-16y_coordinate0xffff
244VTX_XY15-0x_coordinate0xffff
245
246VTX_XZ31-16z_coordinate0xffff
247VTX_XZ15-0x_coordinate0xffff
248
249VTX_YZ31-16z_coordinate0xffff
250VTX_YZ15-0y_coordinate0xffff
251
252VTX_DIFF29-20z_coordinate0x7ff
253VTX_DIFF19-10y_coordinate0x7ff
254VTX_DIFF9-0x_coordinate0x7ff
255
256POLYGON_ATTR29-24polygon_id0b111111
257POLYGON_ATTR20-16alpha_value0b11111
258POLYGON_ATTRfog15disable0
259POLYGON_ATTRfog15enable1
260POLYGON_ATTRdepth_test_condition14render_when_depth_value_is_smaller_than_buffer_value0
261POLYGON_ATTRdepth_test_condition14render_when_depth_value_is_equal_to_buffer_value1
262POLYGON_ATTRone_dot_polygon13do_not_render0
263POLYGON_ATTRone_dot_polygon13render1
264POLYGON_ATTRfar_plane_intersection12delete0
265POLYGON_ATTRfar_plane_intersection12clip1
266POLYGON_ATTRtranslucent_depth_value_update11do_not_update0
267POLYGON_ATTRtranslucent_depth_value_update11update1
268POLYGON_ATTRrender_front_surface7disable0
269POLYGON_ATTRrender_front_surface7enable1
270POLYGON_ATTRrender_back_surface6disable0
271POLYGON_ATTRrender_back_surface6enable1
272POLYGON_ATTRpolygon_mode5-4modulation0b00
273POLYGON_ATTRpolygon_mode5-4decal0b01
274POLYGON_ATTRpolygon_mode5-4toon0b10
275POLYGON_ATTRpolygon_mode5-4shadow0b11
276POLYGON_ATTRlight_33disable0
277POLYGON_ATTRlight_33enable1
278POLYGON_ATTRlight_22disable0
279POLYGON_ATTRlight_22enable1
280POLYGON_ATTRlight_11disable0
281POLYGON_ATTRlight_11enable1
282POLYGON_ATTRlight_00disable0
283POLYGON_ATTRlight_00enable1
284
285TEXIMAGE_PARAMtexture_coordinate_transformation_mode31-30do_not_transform_texture_coordinates0b00
286TEXIMAGE_PARAMtexture_coordinate_transformation_mode31-30texcoord_source0b01
287TEXIMAGE_PARAMtexture_coordinate_transformation_mode31-30normal_source0b10
288TEXIMAGE_PARAMtexture_coordinate_transformation_mode31-30vertex_source0b11
289TEXIMAGE_PARAMpalette_color0_transparency29palette_setting0
290TEXIMAGE_PARAMpalette_color0_transparency29always_transparent1
291TEXIMAGE_PARAMtexture_format28-26no_texture0
292TEXIMAGE_PARAMtexture_format28-26a3i5_translucent1
293TEXIMAGE_PARAMtexture_format28-264_color_palette2
294TEXIMAGE_PARAMtexture_format28-2616_color_palette3
295TEXIMAGE_PARAMtexture_format28-26256_color_palette4
296TEXIMAGE_PARAMtexture_format28-264x4_texel_compressed5
297TEXIMAGE_PARAMtexture_format28-26a5i3_translucent6
298TEXIMAGE_PARAMtexture_format28-26direct7
299TEXIMAGE_PARAMt_size25-238_texels0
300TEXIMAGE_PARAMt_size25-2316_texels1
301TEXIMAGE_PARAMt_size25-2332_texels2
302TEXIMAGE_PARAMt_size25-2364_texels3
303TEXIMAGE_PARAMt_size25-23128_texels4
304TEXIMAGE_PARAMt_size25-23256_texels5
305TEXIMAGE_PARAMt_size25-23512_texels6
306TEXIMAGE_PARAMt_size25-231024_texels7
307TEXIMAGE_PARAMs_size22-208_texels0
308TEXIMAGE_PARAMs_size22-2016_texels1
309TEXIMAGE_PARAMs_size22-2032_texels2
310TEXIMAGE_PARAMs_size22-2064_texels3
311TEXIMAGE_PARAMs_size22-20128_texels4
312TEXIMAGE_PARAMs_size22-20256_texels5
313TEXIMAGE_PARAMs_size22-20512_texels6
314TEXIMAGE_PARAMs_size22-201024_texels7
315TEXIMAGE_PARAMflip_t19do_not_flip0
316TEXIMAGE_PARAMflip_t19flip1
317TEXIMAGE_PARAMflip_s18do_not_flip0
318TEXIMAGE_PARAMflip_s18flip1
319TEXIMAGE_PARAMrepeat_t17do_not_repeat0
320TEXIMAGE_PARAMrepeat_t17repeat1
321TEXIMAGE_PARAMrepeat_s16do_not_repeat0
322TEXIMAGE_PARAMrepeat_s16repeat1
323TEXIMAGE_PARAM15-0texture_starting_address0xffff
324
325TEXPLTT_BASE12-0base_address0x1fff
326
327DIF_AMB30-26ambient_blue0b11111
328DIF_AMB25-21ambient_green0b11111
329DIF_AMB20-16ambient_red0b11111
330DIF_AMBvertex_color15do_not_set_vertex_color0
331DIF_AMBvertex_color15set_diffuse_reflection_color_as_vertex_color1
332DIF_AMB14-10diffuse_blue0b11111
333DIF_AMB9-5diffuse_green0b11111
334DIF_AMB4-0diffuse_red0b11111
335
336SPE_EMI30-26emission_blue0b11111
337SPE_EMI25-21emission_green0b11111
338SPE_EMI20-16emission_red0b11111
339SPE_EMIshininess15disable0
340SPE_EMIshininess15enable1
341SPE_EMI14-10specular_blue0b11111
342SPE_EMI9-5specular_green0b11111
343SPE_EMI4-0specular_red0b11111
344
345LIGHT_VECTOR31-30light_number0b11
346LIGHT_VECTOR29-20decimal_z0x3ff
347LIGHT_VECTOR19-10decimal_y0x3ff
348LIGHT_VECTOR9-0decimal_x0x3ff
349
350LIGHT_COLOR31-30light_number0b11
351LIGHT_COLOR14-10blue0b11111
352LIGHT_COLOR9-5green0b11111
353LIGHT_COLOR4-0red0b11111
354
355SHININESS31-244x_30xff
356SHININESS23-164x_20xff
357SHININESS15-84x_10xff
358SHININESS7-04x_00xff
359
360BEGIN_VTXStype1-0triangle0b00
361BEGIN_VTXStype1-0quadrilateral0b01
362BEGIN_VTXStype1-0triangle_strip0b10
363BEGIN_VTXStype1-0quadrilateral_strip0b11
364
365SWAP_BUFFERSdepth_buffering1z_value0
366SWAP_BUFFERSdepth_buffering1w_value1
367SWAP_BUFFERStranslucent_polygon_y_sorting0auto_sort0
368SWAP_BUFFERStranslucent_polygon_y_sorting0manual_sort1
369
370VIEWPORT31-24y20xff
371VIEWPORT23-16x20xff
372VIEWPORT15-8y10xff
373VIEWPORT7-0x10xff
374
375BOX_TEST031-16y_coordinate0xffff
376BOX_TEST015-0x_coordinate0xffff
377BOX_TEST131-16width0xffff
378BOX_TEST115-0z_coordinate0xffff
379BOX_TEST231-16depth0xffff
380BOX_TEST215-0height0xffff
381
382POS_TEST031-16y_coordinate0xffff
383POS_TEST015-0x_coordinate0xffff
384POS_TEST115-0z_coordinate0xffff
385
386VEC_TEST29-20decimal_z0x3ff
387VEC_TEST19-10decimal_y0x3ff
388VEC_TEST9-0decimal_x0x3ff
389
390GXSTATcommand_fifo_interrupt_condition31-30disable0b00
391GXSTATcommand_fifo_interrupt_condition31-30half_full0b01
392GXSTATcommand_fifo_interrupt_condition31-30empty0b10
393GXSTAT27geometry_engine_busy1
394GXSTATfifo_status26empty1
395GXSTATfifo_status25less_than_half_full1
396GXSTATfifo_status24full1
397GXSTAT23-16command_fifo_count
398GXSTATmatrix_stack_status15overflow_or_underflow1
399GXSTATmatrix_stack_status14busy1
400GXSTATmatrix_stack_status13projection_stack_level
401GXSTATmatrix_stack_status12-8position_and_vector_stack_level
402GXSTAT1test_status1
403GXSTAT0test_busy1
404
405LISTRAM_COUNT11-0counter
406
407VTXRAM_COUNT12-0counter
408
409OBJ_ATTRIBUTE_0obj_shape15-14square0b00
410OBJ_ATTRIBUTE_0obj_shape15-14long_rectangle0b01
411OBJ_ATTRIBUTE_0obj_shape15-14tall_rectangle0b10
412OBJ_ATTRIBUTE_0color_mode1316_color_mode0
413OBJ_ATTRIBUTE_0color_mode13256_color_mode1
414OBJ_ATTRIBUTE_0mosaic12off0
415OBJ_ATTRIBUTE_0mosaic12on1
416OBJ_ATTRIBUTE_0obj_mode11-10normal0b00
417OBJ_ATTRIBUTE_0obj_mode11-10translucent0b01
418OBJ_ATTRIBUTE_0obj_mode11-10obj_window0b10
419OBJ_ATTRIBUTE_0obj_mode11-10bitmap_obj0b11
420OBJ_ATTRIBUTE_0double_size9disable0
421OBJ_ATTRIBUTE_0double_size9enable1
422OBJ_ATTRIBUTE_0affine_transformation8disable0
423OBJ_ATTRIBUTE_0affine_transformation8enable1
424OBJ_ATTRIBUTE_07-0y_coordinate0xff
425
426OBJ_ATTRIBUTE_115-14obj_size0b11
427OBJ_ATTRIBUTE_113-9affine_transformation_parameter0b11111
428OBJ_ATTRIBUTE_18-0x_coordinate0x1ff
429
430OBJ_ATTRIBUTE_215-12color_parameter0b1111
431OBJ_ATTRIBUTE_211-10display_priority0b11
432OBJ_ATTRIBUTE_29-0character_name0x3ff