nds/registers/graphics_engine_bits.csv

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
186COLOR14-10blue0b11111
187COLOR9-5green0b11111
188COLOR4-0red0b11111
189
190NORMAL29-20z_component0x7ff
191NORMAL19-10y_component0x7ff
192NORMAL9-0x_component0x7ff
193
194TEXCOORD31-16t_coordinate0xffff
195TEXCOORD15-0x_coordinate0xffff
196
197VTX_16031-16y_coordinate0xffff
198VTX_16015-0x_coordinate0xffff
199VTX_16115-0z_coordinate0xffff
200
201VTX_1029-20z_coordinate0x7ff
202VTX_1019-10y_coordinate0x7ff
203VTX_109-0x_coordinate0x7ff
204
205VTX_XY31-16y_coordinate0xffff
206VTX_XY15-0x_coordinate0xffff
207
208VTX_XZ31-16z_coordinate0xffff
209VTX_XZ15-0x_coordinate0xffff
210
211VTX_YZ31-16z_coordinate0xffff
212VTX_YZ15-0y_coordinate0xffff
213
214VTX_DIFF29-20z_coordinate0x7ff
215VTX_DIFF19-10y_coordinate0x7ff
216VTX_DIFF9-0x_coordinate0x7ff
217
218POLYGON_ATTR29-24polygon_id0b111111
219POLYGON_ATTR20-16alpha_value0b11111
220POLYGON_ATTRfog15disable0
221POLYGON_ATTRfog15enable1
222POLYGON_ATTRdepth_test_condition14render_when_depth_value_is_smaller_than_buffer_value0
223POLYGON_ATTRdepth_test_condition14render_when_depth_value_is_equal_to_buffer_value1
224POLYGON_ATTRone_dot_polygon13do_not_render0
225POLYGON_ATTRone_dot_polygon13render1
226POLYGON_ATTRfar_plane_intersection12delete0
227POLYGON_ATTRfar_plane_intersection12clip1
228POLYGON_ATTRtranslucent_depth_value_update11do_not_update0
229POLYGON_ATTRtranslucent_depth_value_update11update1
230POLYGON_ATTRrender_front_surface7disable0
231POLYGON_ATTRrender_front_surface7enable1
232POLYGON_ATTRrender_back_surface6disable0
233POLYGON_ATTRrender_back_surface6enable1
234POLYGON_ATTRpolygon_mode5-4modulation0b00
235POLYGON_ATTRpolygon_mode5-4decal0b01
236POLYGON_ATTRpolygon_mode5-4toon0b10
237POLYGON_ATTRpolygon_mode5-4shadow0b11
238POLYGON_ATTRlight_33disable0
239POLYGON_ATTRlight_33enable1
240POLYGON_ATTRlight_22disable0
241POLYGON_ATTRlight_22enable1
242POLYGON_ATTRlight_11disable0
243POLYGON_ATTRlight_11enable1
244POLYGON_ATTRlight_00disable0
245POLYGON_ATTRlight_00enable1
246
247TEXIMAGE_PARAMtexture_coordinate_transformation_mode31-30do_not_transform_texture_coordinates0b00
248TEXIMAGE_PARAMtexture_coordinate_transformation_mode31-30texcoord_source0b01
249TEXIMAGE_PARAMtexture_coordinate_transformation_mode31-30normal_source0b10
250TEXIMAGE_PARAMtexture_coordinate_transformation_mode31-30vextex_source0b11
251TEXIMAGE_PARAMpalette_color0_transparency29palette_setting0
252TEXIMAGE_PARAMpalette_color0_transparency29always_transparent1
253TEXIMAGE_PARAMtexture_format28-26no_texture0
254TEXIMAGE_PARAMtexture_format28-26a3i5_translucent1
255TEXIMAGE_PARAMtexture_format28-264_color_palette2
256TEXIMAGE_PARAMtexture_format28-2616_color_palette3
257TEXIMAGE_PARAMtexture_format28-26256_color_palette4
258TEXIMAGE_PARAMtexture_format28-264x4_texel_compressed5
259TEXIMAGE_PARAMtexture_format28-26a5i3_translucent6
260TEXIMAGE_PARAMtexture_format28-26direct7
261TEXIMAGE_PARAMt_size25-238_texels0
262TEXIMAGE_PARAMt_size25-2316_texels1
263TEXIMAGE_PARAMt_size25-2332_texels2
264TEXIMAGE_PARAMt_size25-2364_texels3
265TEXIMAGE_PARAMt_size25-23128_texels4
266TEXIMAGE_PARAMt_size25-23256_texels5
267TEXIMAGE_PARAMt_size25-23512_texels6
268TEXIMAGE_PARAMt_size25-231024_texels7
269TEXIMAGE_PARAMs_size22-208_texels0
270TEXIMAGE_PARAMs_size22-2016_texels1
271TEXIMAGE_PARAMs_size22-2032_texels2
272TEXIMAGE_PARAMs_size22-2064_texels3
273TEXIMAGE_PARAMs_size22-20128_texels4
274TEXIMAGE_PARAMs_size22-20256_texels5
275TEXIMAGE_PARAMs_size22-20512_texels6
276TEXIMAGE_PARAMs_size22-201024_texels7
277TEXIMAGE_PARAMflip_t19do_not_flip0
278TEXIMAGE_PARAMflip_t19flip1
279TEXIMAGE_PARAMflip_s18do_not_flip0
280TEXIMAGE_PARAMflip_s18flip1
281TEXIMAGE_PARAMrepeat_t17do_not_repeat0
282TEXIMAGE_PARAMrepeat_t17repeat1
283TEXIMAGE_PARAMrepeat_s16do_not_repeat0
284TEXIMAGE_PARAMrepeat_s16repeat1
285TEXIMAGE_PARAM15-0texture_starting_address0xffff
286
287TEXPLTT_BASE12-0base_address0x1fff
288
289DIF_AMB30-26ambient_blue0b11111
290DIF_AMB25-21ambient_green0b11111
291DIF_AMB20-16ambient_red0b11111
292DIF_AMBvertex_color15do_not_set_vertex_color0
293DIF_AMBvertex_color15set_diffuse_reflection_color_as_vertex_color1
294DIF_AMB14-10diffuse_blue0b11111
295DIF_AMB9-5diffuse_green0b11111
296DIF_AMB4-0diffuse_red0b11111
297
298SPE_EMI30-26emission_blue0b11111
299SPE_EMI25-21emission_green0b11111
300SPE_EMI20-16emission_red0b11111
301SPE_EMIshininess15disable0
302SPE_EMIshininess15enable1
303SPE_EMI14-10specular_blue0b11111
304SPE_EMI9-5specular_green0b11111
305SPE_EMI4-0specular_red0b11111
306
307LIGHT_VECTOR31-30light_number0b11
308LIGHT_VECTOR29-20decimal_z0x3ff
309LIGHT_VECTOR19-10decimal_y0x3ff
310LIGHT_VECTOR9-0decimal_x0x3ff
311
312LIGHT_COLOR31-30light_number0b11
313LIGHT_COLOR14-10blue0b11111
314LIGHT_COLOR9-5green0b11111
315LIGHT_COLOR4-0red0b11111
316
317SHININESS31-244x_30xff
318SHININESS23-164x_20xff
319SHININESS15-84x_10xff
320SHININESS7-04x_00xff
321
322BEGIN_VTXStype1-0triangle0b00
323BEGIN_VTXStype1-0quadrilateral0b01
324BEGIN_VTXStype1-0triangle_strip0b10
325BEGIN_VTXStype1-0quadrilateral_strip0b11
326
327SWAP_BUFFERSdepth_buffering1z_value0
328SWAP_BUFFERSdepth_buffering1w_value1
329SWAP_BUFFERStranslucent_polygon_y_sorting0auto_sort0
330SWAP_BUFFERStranslucent_polygon_y_sorting0manual_sort1
331
332VIEWPORT31-24y20xff
333VIEWPORT23-16x20xff
334VIEWPORT15-8y10xff
335VIEWPORT7-0x10xff
336
337BOX_TEST031-16y_coordinate0xffff
338BOX_TEST015-0x_coordinate0xffff
339BOX_TEST131-16width0xffff
340BOX_TEST115-0z_coordinate0xffff
341BOX_TEST231-16depth0xffff
342BOX_TEST215-0height0xffff
343
344POS_TEST031-16y_coordinate0xffff
345POS_TEST015-0x_coordinate0xffff
346POS_TEST115-0z_coordinate0xffff
347
348VEC_TEST29-20decimal_z0x3ff
349VEC_TEST19-10decimal_y0x3ff
350VEC_TEST9-0decimal_x0x3ff
351
352GXSTATcommand_fifo_interrupt_condition31-30disable0b00
353GXSTATcommand_fifo_interrupt_condition31-30half_full0b01
354GXSTATcommand_fifo_interrupt_condition31-30empty0b10
355GXSTAT27geometry_engine_busy1
356GXSTATfifo_status26empty1
357GXSTATfifo_status25less_than_half_full1
358GXSTATfifo_status24full1
359GXSTAT23-16command_fifo_count
360GXSTATmatrix_stack_status15overflow_or_underflow1
361GXSTATmatrix_stack_status14busy1
362GXSTATmatrix_stack_status13projection_stack_level
363GXSTATmatrix_stack_status12-8position_and_vector_stack_level
364GXSTAT1test_status1
365GXSTAT0test_busy1
366
367LISTRAM_COUNT11-0counter
368
369VTXRAM_COUNT12-0counter
370
371OBJ_ATTRIBUTE_0obj_shape15-14square0b00
372OBJ_ATTRIBUTE_0obj_shape15-14long_rectangle0b01
373OBJ_ATTRIBUTE_0obj_shape15-14tall_rectangle0b10
374OBJ_ATTRIBUTE_0color_mode1316_color_mode0
375OBJ_ATTRIBUTE_0color_mode13256_color_mode1
376OBJ_ATTRIBUTE_0mosaic12off0
377OBJ_ATTRIBUTE_0mosaic12on1
378OBJ_ATTRIBUTE_0obj_mode11-10normal0b00
379OBJ_ATTRIBUTE_0obj_mode11-10translucent0b01
380OBJ_ATTRIBUTE_0obj_mode11-10obj_window0b10
381OBJ_ATTRIBUTE_0obj_mode11-10bitmap_obj0b11
382OBJ_ATTRIBUTE_0double_size9disable0
383OBJ_ATTRIBUTE_0double_size9enable1
384OBJ_ATTRIBUTE_0affine_transformation8disable0
385OBJ_ATTRIBUTE_0affine_transformation8enable1
386OBJ_ATTRIBUTE_07-0y_coordinate0xff
387
388OBJ_ATTRIBUTE_115-14obj_size0b11
389OBJ_ATTRIBUTE_113-9affine_transformation_parameter0b11111
390OBJ_ATTRIBUTE_18-0x_coordinate0x1ff
391
392OBJ_ATTRIBUTE_215-12color_parameter0b1111
393OBJ_ATTRIBUTE_211-10display_priority0b11
394OBJ_ATTRIBUTE_29-0character_name0x3ff