6.6 KiB
6.6 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 | 2d_3d_display_selection_for_bg0 | 3 | display_2d_graphics | 0 | ||
44 | DISPCNT | 2d_3d_display_selection_for_bg0 | 3 | display_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 | OBJ_ATTRIBUTE_0 | obj_shape | 15-14 | square | 0b00 | ||
125 | OBJ_ATTRIBUTE_0 | obj_shape | 15-14 | long_rectangle | 0b01 | ||
126 | OBJ_ATTRIBUTE_0 | obj_shape | 15-14 | tall_rectangle | 0b10 | ||
127 | OBJ_ATTRIBUTE_0 | color_mode | 13 | 16_color_mode | 0 | ||
128 | OBJ_ATTRIBUTE_0 | color_mode | 13 | 256_color_mode | 1 | ||
129 | OBJ_ATTRIBUTE_0 | mosaic | 12 | off | 0 | ||
130 | OBJ_ATTRIBUTE_0 | mosaic | 12 | on | 1 | ||
131 | OBJ_ATTRIBUTE_0 | obj_mode | 11-10 | normal | 0b00 | ||
132 | OBJ_ATTRIBUTE_0 | obj_mode | 11-10 | translucent | 0b01 | ||
133 | OBJ_ATTRIBUTE_0 | obj_mode | 11-10 | obj_window | 0b10 | ||
134 | OBJ_ATTRIBUTE_0 | obj_mode | 11-10 | bitmap_obj | 0b11 | ||
135 | OBJ_ATTRIBUTE_0 | double_size | 9 | disable | 0 | ||
136 | OBJ_ATTRIBUTE_0 | double_size | 9 | enable | 1 | ||
137 | OBJ_ATTRIBUTE_0 | affine_transformation | 8 | disable | 0 | ||
138 | OBJ_ATTRIBUTE_0 | affine_transformation | 8 | enable | 1 | ||
139 | OBJ_ATTRIBUTE_0 | 7-0 | y_coordinate | 0xff |