nds/registers/graphics_engine_bits.csv
2024-09-01 00:52:18 -05:00

17 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
124POWCNTlcd_output_destination15a_to_lower__b_to_upper0
125POWCNTlcd_output_destination15a_to_upper__b_to_lower1
126POWCNT2d_graphics_engine_b9disable0
127POWCNT2d_graphics_engine_b9enable1
128POWCNTgeometry_engine3disable0
129POWCNTgeometry_engine3enable1
130POWCNTrendering_engine2disable0
131POWCNTrendering_engine2enable1
132POWCNT2d_graphics_engine_a1disable0
133POWCNT2d_graphics_engine_a1enable1
134POWCNTlcd0disable0
135POWCNTlcd0enable1
136
137RDLINES_COUNT5-0rendered_lines_min
138
139ALPHA_TEST_REF4-0comparison_value0b11111
140
141CLEAR_COLOR29-24clear_polygon_id0b111111
142CLEAR_COLOR20-16alpha_value0b11111
143CLEAR_COLOR15fog_enable1
144CLEAR_COLOR14-10blue0b11111
145CLEAR_COLOR9-5green0b11111
146CLEAR_COLOR4-0red0b11111
147
148CLEAR_DEPTH14-0value0x7fff
149
150CLRIMAGE_OFFSET15-8y_offset0xff
151CLRIMAGE_OFFSET7-0x_offset0xff
152
153DISP3DCNTclear_image14disable0
154DISP3DCNTclear_image14enable1
155DISP3DCNT13polygon_list_ram_and_vertex_ram_overflow1
156DISP3DCNT12color_buffer_underflow1
157DISP3DCNT11-8fog_shift0b1111
158DISP3DCNTfog_master7disable0
159DISP3DCNTfog_master7enable1
160DISP3DCNTfog_mode6blending_using_pixel_color_value_and_alpha_value0
161DISP3DCNTfog_mode6blending_using_only_pixel_alpha_value1
162DISP3DCNTedge_marking5disable0
163DISP3DCNTedge_marking5enable1
164DISP3DCNTanti_aliasing4disable0
165DISP3DCNTanti_aliasing4enable1
166DISP3DCNTalpha_blending3disable0
167DISP3DCNTalpha_blending3enable1
168DISP3DCNTalpha_test2disable0
169DISP3DCNTalpha_test2enable1
170DISP3DCNTtoon_highlight1toon_shading0
171DISP3DCNTtoon_highlight1highlight_shading1
172DISP3DCNTtexture_mapping0disable0
173DISP3DCNTtexture_mapping0enable1
174
175MTX_MODEmatrix_mode1-0projection0b00
176MTX_MODEmatrix_mode1-0position0b01
177MTX_MODEmatrix_mode1-0position_and_vector0b10
178MTX_MODEmatrix_mode1-0texture0b11
179
180MTX_POP5-0number_of_pops0b111111
181
182MTX_STORE4-0index0b11111
183
184MTX_RESTORE4-0position0b11111
185
186NORMAL29-20z_component0x7ff
187NORMAL19-10y_component0x7ff
188NORMAL9-0x_component0x7ff
189
190TEXCOORD31-16t_coordinate0xffff
191TEXCOORD15-0x_coordinate0xffff
192
193VTX_16031-16y_coordinate0xffff
194VTX_16015-0x_coordinate0xffff
195VTX_16115-0z_coordinate0xffff
196
197VTX_1029-20z_coordinate0x7ff
198VTX_1019-10y_coordinate0x7ff
199VTX_109-0x_coordinate0x7ff
200
201VTX_XY31-16y_coordinate0xffff
202VTX_XY15-0x_coordinate0xffff
203
204VTX_XZ31-16z_coordinate0xffff
205VTX_XZ15-0z_coordinate0xffff
206
207VTX_YZ31-16z_coordinate0xffff
208VTX_YZ15-0y_coordinate0xffff
209
210VTX_DIFF29-20z_coordinate0x7ff
211VTX_DIFF19-10y_coordinate0x7ff
212VTX_DIFF9-0x_coordinate0x7ff
213
214POLYGON_ATTR29-24polygon_id0b111111
215POLYGON_ATTR20-16alpha_value0b11111
216POLYGON_ATTRfog15disable0
217POLYGON_ATTRfog15enable1
218POLYGON_ATTRdepth_test_condition14render_when_depth_value_is_smaller_than_buffer_value0
219POLYGON_ATTRdepth_test_condition14render_when_depth_value_is_equal_to_buffer_value1
220POLYGON_ATTRone_dot_polygon13do_not_render0
221POLYGON_ATTRone_dot_polygon13render1
222POLYGON_ATTRfar_plane_intersection12delete0
223POLYGON_ATTRfar_plane_intersection12clip1
224POLYGON_ATTRtranslucent_depth_value_update11do_not_update0
225POLYGON_ATTRtranslucent_depth_value_update11update1
226POLYGON_ATTRrender_front_surface7disable0
227POLYGON_ATTRrender_front_surface7enable1
228POLYGON_ATTRrender_back_surface6disable0
229POLYGON_ATTRrender_back_surface6enable1
230POLYGON_ATTRpolygon_mode5-4modulation0b00
231POLYGON_ATTRpolygon_mode5-4decal0b01
232POLYGON_ATTRpolygon_mode5-4toon0b10
233POLYGON_ATTRpolygon_mode5-4shadow0b11
234POLYGON_ATTRlight_33disable0
235POLYGON_ATTRlight_33enable1
236POLYGON_ATTRlight_22disable0
237POLYGON_ATTRlight_22enable1
238POLYGON_ATTRlight_11disable0
239POLYGON_ATTRlight_11enable1
240POLYGON_ATTRlight_00disable0
241POLYGON_ATTRlight_00enable1
242
243TEXIMAGE_PARAMtexture_coordinate_transformation_mode31-30do_not_transform_texture_coordinates0b00
244TEXIMAGE_PARAMtexture_coordinate_transformation_mode31-30texcoord_source0b01
245TEXIMAGE_PARAMtexture_coordinate_transformation_mode31-30normal_source0b10
246TEXIMAGE_PARAMtexture_coordinate_transformation_mode31-30vextex_source0b11
247TEXIMAGE_PARAMpalette_color0_transparency29palette_setting0
248TEXIMAGE_PARAMpalette_color0_transparency29always_transparent1
249TEXIMAGE_PARAMtexture_format28-26no_texture0
250TEXIMAGE_PARAMtexture_format28-26a3i5_translucent1
251TEXIMAGE_PARAMtexture_format28-264_color_palette2
252TEXIMAGE_PARAMtexture_format28-2616_color_palette3
253TEXIMAGE_PARAMtexture_format28-26256_color_palette4
254TEXIMAGE_PARAMtexture_format28-264x4_texel_compressed5
255TEXIMAGE_PARAMtexture_format28-26a5i3_translucent6
256TEXIMAGE_PARAMtexture_format28-26direct7
257TEXIMAGE_PARAMt_size25-238_texels0
258TEXIMAGE_PARAMt_size25-2316_texels1
259TEXIMAGE_PARAMt_size25-2332_texels2
260TEXIMAGE_PARAMt_size25-2364_texels3
261TEXIMAGE_PARAMt_size25-23128_texels4
262TEXIMAGE_PARAMt_size25-23256_texels5
263TEXIMAGE_PARAMt_size25-23512_texels6
264TEXIMAGE_PARAMt_size25-231024_texels7
265TEXIMAGE_PARAMs_size22-208_texels0
266TEXIMAGE_PARAMs_size22-2016_texels1
267TEXIMAGE_PARAMs_size22-2032_texels2
268TEXIMAGE_PARAMs_size22-2064_texels3
269TEXIMAGE_PARAMs_size22-20128_texels4
270TEXIMAGE_PARAMs_size22-20256_texels5
271TEXIMAGE_PARAMs_size22-20512_texels6
272TEXIMAGE_PARAMs_size22-201024_texels7
273TEXIMAGE_PARAMflip_t19do_not_flip0
274TEXIMAGE_PARAMflip_t19flip1
275TEXIMAGE_PARAMflip_s18do_not_flip0
276TEXIMAGE_PARAMflip_s18flip1
277TEXIMAGE_PARAMrepeat_t17do_not_repeat0
278TEXIMAGE_PARAMrepeat_t17repeat1
279TEXIMAGE_PARAMrepeat_s16do_not_repeat0
280TEXIMAGE_PARAMrepeat_s16repeat1
281TEXIMAGE_PARAM15-0texture_starting_address0xffff
282
283TEXPLTT_BASE12-0base_address0x1fff
284
285DIF_AMB30-26ambient_blue0b11111
286DIF_AMB25-21ambient_green0b11111
287DIF_AMB20-16ambient_red0b11111
288DIF_AMBvertex_color15do_not_set_vertex_color0
289DIF_AMBvertex_color15set_diffuse_reflection_color_as_vertex_color1
290DIF_AMB14-10diffuse_blue0b11111
291DIF_AMB9-5diffuse_green0b11111
292DIF_AMB4-0diffuse_red0b11111
293
294SPE_EMI30-26emission_blue0b11111
295SPE_EMI25-21emission_green0b11111
296SPE_EMI20-16emission_red0b11111
297SPE_EMIshininess15disable0
298SPE_EMIshininess15enable1
299SPE_EMI14-10specular_blue0b11111
300SPE_EMI9-5specular_green0b11111
301SPE_EMI4-0specular_red0b11111
302
303LIGHT_VECTOR31-30light_number0b11
304LIGHT_VECTOR29-20decimal_z0x3ff
305LIGHT_VECTOR19-10decimal_y0x3ff
306LIGHT_VECTOR9-0decimal_x0x3ff
307
308LIGHT_COLOR31-30light_number0b11
309LIGHT_COLOR14-10blue0b11111
310LIGHT_COLOR9-5green0b11111
311LIGHT_COLOR4-0red0b11111
312
313SHININESS31-244x_30xff
314SHININESS23-164x_20xff
315SHININESS15-84x_10xff
316SHININESS7-04x_00xff
317
318BEGIN_VTXStype1-0triangle0b00
319BEGIN_VTXStype1-0quadrilateral0b01
320BEGIN_VTXStype1-0triangle_strip0b10
321BEGIN_VTXStype1-0quadrilateral_strip0b11
322
323SWAP_BUFFERSdepth_buffering1z_value0
324SWAP_BUFFERSdepth_buffering1w_value1
325SWAP_BUFFERStranslucent_polygon_y_sorting0auto_sort0
326SWAP_BUFFERStranslucent_polygon_y_sorting0manual_sort1
327
328VIEWPORT31-24y20xff
329VIEWPORT23-16x20xff
330VIEWPORT15-8y10xff
331VIEWPORT7-0x10xff
332
333BOX_TEST031-16y_coordinate0xffff
334BOX_TEST015-0x_coordinate0xffff
335BOX_TEST131-16width0xffff
336BOX_TEST115-0z_coordinate0xffff
337BOX_TEST231-16depth0xffff
338BOX_TEST215-0height0xffff
339
340POS_TEST031-16y_coordinate0xffff
341POS_TEST015-0x_coordinate0xffff
342POS_TEST115-0z_coordinate0xffff
343
344VEC_TEST29-20decimal_z0x3ff
345VEC_TEST19-10decimal_y0x3ff
346VEC_TEST9-0decimal_x0x3ff
347
348GXSTATcommand_fifo_interrupt_condition31-30disable0b00
349GXSTATcommand_fifo_interrupt_condition31-30half_full0b01
350GXSTATcommand_fifo_interrupt_condition31-30empty0b10
351GXSTAT27geometry_engine_busy
352GXSTATfifo_status26empty
353GXSTATfifo_status25less_than_half_full
354GXSTATfifo_status24full
355GXSTAT23-16command_fifo_count
356GXSTATmatrix_stack_status15stack_overflow_or_underflow
357GXSTATmatrix_stack_status14stack_busy
358GXSTATmatrix_stack_status13projection_matrix_stack_level
359GXSTATmatrix_stack_status12-8position_and_vector_matrix_stack_level
360GXSTAT1test_status
361GXSTAT0test_busy
362
363LISTRAM_COUNT11-0counter
364
365VTXRAM_COUNT12-0counter
366
367OBJ_ATTRIBUTE_0obj_shape15-14square0b00
368OBJ_ATTRIBUTE_0obj_shape15-14long_rectangle0b01
369OBJ_ATTRIBUTE_0obj_shape15-14tall_rectangle0b10
370OBJ_ATTRIBUTE_0color_mode1316_color_mode0
371OBJ_ATTRIBUTE_0color_mode13256_color_mode1
372OBJ_ATTRIBUTE_0mosaic12off0
373OBJ_ATTRIBUTE_0mosaic12on1
374OBJ_ATTRIBUTE_0obj_mode11-10normal0b00
375OBJ_ATTRIBUTE_0obj_mode11-10translucent0b01
376OBJ_ATTRIBUTE_0obj_mode11-10obj_window0b10
377OBJ_ATTRIBUTE_0obj_mode11-10bitmap_obj0b11
378OBJ_ATTRIBUTE_0double_size9disable0
379OBJ_ATTRIBUTE_0double_size9enable1
380OBJ_ATTRIBUTE_0affine_transformation8disable0
381OBJ_ATTRIBUTE_0affine_transformation8enable1
382OBJ_ATTRIBUTE_07-0y_coordinate0xff
383
384OBJ_ATTRIBUTE_115-14obj_size0b11
385OBJ_ATTRIBUTE_113-9affine_transformation_parameter0b11111
386OBJ_ATTRIBUTE_18-0x_coordinate0x1ff
387
388OBJ_ATTRIBUTE_215-12color_parameter0b1111
389OBJ_ATTRIBUTE_211-10display_priority0b11
390OBJ_ATTRIBUTE_29-0character_name0x3ff