Mercurial > vba-clojure
view src/win32/IOViewerRegs.h @ 4:5f6f2134e8ce
apu appears to not be used
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:35:58 -0600 |
parents | f9f4f1b99eed |
children |
line wrap: on
line source
1 #ifndef VBA_IOVIEWERREGS_H2 #define VBA_IOVIEWERREGS_H4 #if _MSC_VER > 10005 #pragma once6 #endif // _MSC_VER > 10008 struct IOData9 {10 u16 * address;11 u16 offset;12 char *name;13 u16 write;14 char *bits[16];15 };17 const IOData ioViewRegisters[] = {18 {19 &DISPCNT, 0, "0x4000000-DISPCNT", 0xFFF7,20 {21 "",22 "",23 "BG Mode (3 bits)",24 "CGB Mode",25 "Display Frame",26 "H-Blank Interval OBJ processing",27 "OBJ Character mapping",28 "Forced blank",29 "BG0",30 "BG1",31 "BG2",32 "BG3",33 "OBJ",34 "WIN0",35 "WIN1",36 "OBJWIN"37 }38 },39 {40 &DISPSTAT, 4, "0x4000004-DISPSTAT", 0xFF38,41 {42 "V-Blank Status",43 "H-Blank Status",44 "VCOUNT Evaluation",45 "V-Blank Interrupt Enable",46 "H-Blank Interrupt Enable",47 "VCOUNT Match Interrupt Enable",48 "",49 "",50 "",51 "",52 "",53 "",54 "",55 "",56 "",57 "VCOUNT setting (8 bits)"58 }59 },60 {61 &VCOUNT, 6, "0x4000006-VCOUNT", 0x0000,62 {63 "",64 "",65 "",66 "",67 "",68 "",69 "",70 "VCOUNT (8 bits)",71 "",72 "",73 "",74 "",75 "",76 "",77 "",78 ""79 }80 },81 {82 &BG0CNT, 8, "0x4000008-BG0CNT", 0xDFCF,83 {84 "",85 "Priority (2 bits)",86 "",87 "Char base (2 bits)",88 "",89 "",90 "Mosaic",91 "16/256 colors",92 "",93 "",94 "",95 "",96 "Screen Base Block (5 bits)",97 "",98 "",99 "Size (2 bits)"100 }101 },102 {103 &BG1CNT, 0xA, "0x400000A-BG1CNT", 0xDFCF,104 {105 "",106 "Priority (2 bits)",107 "",108 "Char base (2 bits)",109 "",110 "",111 "Mosaic",112 "16/256 colors",113 "",114 "",115 "",116 "",117 "Screen Base Block (5 bits)",118 "",119 "",120 "Size (2 bits)"121 }122 },123 {124 &BG2CNT, 0xC, "0x400000C-BG2CNT", 0xFFCF,125 {126 "",127 "Priority (2 bits)",128 "",129 "Char base (2 bits)",130 "",131 "",132 "Mosaic",133 "16/256 colors",134 "",135 "",136 "",137 "",138 "Screen Base Block (5 bits)",139 "Area Overflow",140 "",141 "Size (2 bits)"142 }143 },144 {145 &BG3CNT, 0xE, "0x400000E-BG3CNT", 0xFFCF,146 {147 "",148 "Priority (2 bits)",149 "",150 "Char base (2 bits)",151 "",152 "",153 "Mosaic",154 "16/256 colors",155 "",156 "",157 "",158 "",159 "Screen Base Block (5 bits)",160 "Area Overflow",161 "",162 "Size (2 bits)"163 }164 },165 {166 &BG0HOFS, 0x10, "0x4000010-BG0HOFS", 0x01FF,167 {168 "",169 "",170 "",171 "",172 "",173 "",174 "",175 "",176 "Horizontal Offset (9 bits, W)",177 "",178 "",179 "",180 "",181 "",182 "",183 ""184 }185 },186 {187 &BG0VOFS, 0x12, "0x4000012-BG0VOFS", 0x01FF,188 {189 "",190 "",191 "",192 "",193 "",194 "",195 "",196 "",197 "Vertical Offset (9 bits, W)",198 "",199 "",200 "",201 "",202 "",203 "",204 ""205 }206 },207 {208 &BG1HOFS, 0x14, "0x4000014-BG1HOFS", 0x01FF,209 {210 "",211 "",212 "",213 "",214 "",215 "",216 "",217 "",218 "Horizontal Offset (9 bits, W)",219 "",220 "",221 "",222 "",223 "",224 "",225 ""226 }227 },228 {229 &BG1VOFS, 0x16, "0x4000016-BG1VOFS", 0x01FF,230 {231 "",232 "",233 "",234 "",235 "",236 "",237 "",238 "",239 "Vertical Offset (9 bits, W)",240 "",241 "",242 "",243 "",244 "",245 "",246 ""247 }248 },249 {250 &BG2HOFS, 0x18, "0x4000018-BG8HOFS", 0x01FF,251 {252 "",253 "",254 "",255 "",256 "",257 "",258 "",259 "",260 "Horizontal Offset (9 bits, W)",261 "",262 "",263 "",264 "",265 "",266 "",267 ""268 }269 },270 {271 &BG2VOFS, 0x1A, "0x400001A-BG2VOFS", 0x01FF,272 {273 "",274 "",275 "",276 "",277 "",278 "",279 "",280 "",281 "Vertical Offset (9 bits, W)",282 "",283 "",284 "",285 "",286 "",287 "",288 ""289 }290 },291 {292 &BG3HOFS, 0x1C, "0x400001C-BG3HOFS", 0x01FF,293 {294 "",295 "",296 "",297 "",298 "",299 "",300 "",301 "",302 "Horizontal Offset (9 bits,W)",303 "",304 "",305 "",306 "",307 "",308 "",309 ""310 }311 },312 {313 &BG3VOFS, 0x1E, "0x400001E-BG3VOFS", 0x01FF,314 {315 "",316 "",317 "",318 "",319 "",320 "",321 "",322 "",323 "Vertical Offset (9 bits,W)",324 "",325 "",326 "",327 "",328 "",329 "",330 ""331 }332 },333 {334 &BG2PA, 0x20, "0x4000020-BG2PA", 0xFFFF,335 {336 "",337 "",338 "",339 "",340 "",341 "",342 "",343 "",344 "",345 "",346 "",347 "",348 "",349 "",350 "",351 "dx (16 bits,W)"352 }353 },354 {355 &BG2PB, 0x22, "0x4000022-BG2PB", 0xFFFF,356 {357 "",358 "",359 "",360 "",361 "",362 "",363 "",364 "",365 "",366 "",367 "",368 "",369 "",370 "",371 "",372 "dmx (16 bits,W)"373 }374 },375 {376 &BG2PC, 0x24, "0x4000024-BG2PC", 0xFFFF,377 {378 "",379 "",380 "",381 "",382 "",383 "",384 "",385 "",386 "",387 "",388 "",389 "",390 "",391 "",392 "",393 "dy (16 bits,W)"394 }395 },396 {397 &BG2PD, 0x26, "0x4000026-BG2PD", 0xFFFF,398 {399 "",400 "",401 "",402 "",403 "",404 "",405 "",406 "",407 "",408 "",409 "",410 "",411 "",412 "",413 "",414 "dmy (16 bits,W)"415 }416 },417 {418 &BG2X_L, 0x28, "0x4000028-BG2X_L", 0xFFFF,419 {420 "",421 "",422 "",423 "",424 "",425 "",426 "",427 "",428 "",429 "",430 "",431 "",432 "",433 "",434 "",435 "X low bits (16 bits,W)"436 }437 },438 {439 &BG2X_H, 0x2A, "0x400002A-BG2X_H", 0x0FFF,440 {441 "",442 "",443 "",444 "",445 "",446 "",447 "",448 "",449 "",450 "",451 "",452 "X high bits (12 bits,W)",453 "",454 "",455 "",456 "",457 }458 },459 {460 &BG2Y_L, 0x2C, "0x400002C-BG2Y_L", 0xFFFF,461 {462 "",463 "",464 "",465 "",466 "",467 "",468 "",469 "",470 "",471 "",472 "",473 "",474 "",475 "",476 "",477 "Y low bits (16 bits,W)"478 }479 },480 {481 &BG2Y_H, 0x2E, "0x400002E-BG2Y_H", 0x0FFF,482 {483 "",484 "",485 "",486 "",487 "",488 "",489 "",490 "",491 "",492 "",493 "",494 "Y hight bits (12 bits,W)",495 "",496 "",497 "",498 "",499 }500 },501 {502 &BG3PA, 0x30, "0x4000030-BG3PA", 0xFFFF,503 {504 "",505 "",506 "",507 "",508 "",509 "",510 "",511 "",512 "",513 "",514 "",515 "",516 "",517 "",518 "",519 "dx (16 bits,W)"520 }521 },522 {523 &BG3PB, 0x32, "0x4000032-BG3PB", 0xFFFF,524 {525 "",526 "",527 "",528 "",529 "",530 "",531 "",532 "",533 "",534 "",535 "",536 "",537 "",538 "",539 "",540 "dmx (16 bits,W)"541 }542 },543 {544 &BG3PC, 0x34, "0x4000034-BG3PC", 0xFFFF,545 {546 "",547 "",548 "",549 "",550 "",551 "",552 "",553 "",554 "",555 "",556 "",557 "",558 "",559 "",560 "",561 "dy (16 bits,W)"562 }563 },564 {565 &BG3PD, 0x36, "0x4000036-BG3PD", 0xFFFF,566 {567 "",568 "",569 "",570 "",571 "",572 "",573 "",574 "",575 "",576 "",577 "",578 "",579 "",580 "",581 "",582 "dmy (16 bits,W)"583 }584 },585 {586 &BG3X_L, 0x38, "0x4000038-BG3X_L", 0xFFFF,587 {588 "",589 "",590 "",591 "",592 "",593 "",594 "",595 "",596 "",597 "",598 "",599 "",600 "",601 "",602 "",603 "X low bits (16 bits,W)"604 }605 },606 {607 &BG3X_H, 0x3A, "0x400003A-BG3X_H", 0x0FFF,608 {609 "",610 "",611 "",612 "",613 "",614 "",615 "",616 "",617 "",618 "",619 "",620 "X hight bits (12 bits,W)",621 "",622 "",623 "",624 "",625 }626 },627 {628 &BG3Y_L, 0x3C, "0x400003C-BG3Y_L", 0xFFFF,629 {630 "",631 "",632 "",633 "",634 "",635 "",636 "",637 "",638 "",639 "",640 "",641 "",642 "",643 "",644 "",645 "Y low bits (16 bits,W)"646 }647 },648 {649 &BG3Y_H, 0x3E, "0x400003E-BG3Y_H", 0x0FFF,650 {651 "",652 "",653 "",654 "",655 "",656 "",657 "",658 "",659 "",660 "",661 "",662 "Y hight bits (12 bits,W)",663 "",664 "",665 "",666 "",667 }668 },669 {670 &WIN0H, 0x40, "0x4000040-WIN0H", 0xFFFF,671 {672 "",673 "",674 "",675 "",676 "",677 "",678 "",679 "Win 0 lower-right X (8 bits,W)",680 "",681 "",682 "",683 "",684 "",685 "",686 "",687 "Win 0 upper-left X (8 bits,W)",688 }689 },690 {691 &WIN1H, 0x42, "0x4000042-WIN1H", 0xFFFF,692 {693 "",694 "",695 "",696 "",697 "",698 "",699 "",700 "Win 1 lower-right X (8 bits,W)",701 "",702 "",703 "",704 "",705 "",706 "",707 "",708 "Win 1 upper-left (8 bits,W)",709 }710 },711 {712 &WIN0V, 0x44, "0x4000044-WIN0V", 0xFFFF,713 {714 "",715 "",716 "",717 "",718 "",719 "",720 "",721 "Win 0 lower-right Y (8 bits,W)",722 "",723 "",724 "",725 "",726 "",727 "",728 "",729 "Win 0 upper-left Y (8 bits,W)",730 }731 },732 {733 &WIN1V, 0x46, "0x4000046-WIN1V", 0xFFFF,734 {735 "",736 "",737 "",738 "",739 "",740 "",741 "",742 "Win 1 lower-right Y (8 bits,W)",743 "",744 "",745 "",746 "",747 "",748 "",749 "",750 "Win 1 upper-left Y (8 bits,W)",751 }752 },753 {754 &WININ, 0x48, "0x4000048-WININ", 0x3F3F,755 {756 "WIN0 BG0",757 "WIN0 BG1",758 "WIN0 BG2",759 "WIN0 BG3",760 "WIN0 OBJ",761 "WIN0 Special FX",762 "",763 "",764 "WIN1 BG0",765 "WIN1 BG1",766 "WIN1 BG2",767 "WIN1 BG3",768 "WIN1 OBJ",769 "WIN1 Special FX",770 "",771 "",772 }773 },774 {775 &WINOUT, 0x4A, "0x400004A-WINOUT", 0x3F3F,776 {777 "WIN0/1 BG0",778 "WIN0/1 BG1",779 "WIN0/1 BG2",780 "WIN0/1 BG3",781 "WIN0/1 OBJ",782 "WIN0/1 Special FX",783 "",784 "",785 "OBJWIN BG0",786 "OBJWIN BG1",787 "OBJWIN BG2",788 "OBJWIN BG3",789 "OBJWIN OBJ",790 "OBJWIN Special FX",791 "",792 "",793 }794 },795 {796 &MOSAIC, 0x4C, "0x400004C-MOSAIC", 0xFFFF,797 {798 "",799 "",800 "",801 "BG H Size (4 bits,W)",802 "",803 "",804 "",805 "BG V Size (4 bits,W)",806 "",807 "",808 "",809 "OBJ H Size (4 bits,W)",810 "",811 "",812 "",813 "OBJ V Size (4 bits,W)",814 }815 },816 {817 &BLDMOD, 0x50, "0x4000050-BLDMOD", 0x3FFF,818 {819 "1st BG0",820 "1st BG1",821 "1st BG2",822 "1st BG3",823 "1st OBJ",824 "1st BD",825 "",826 "FX Type (2 bits)",827 "2nd BG0",828 "2nd BG1",829 "2nd BG2",830 "2nd BG3",831 "2nd OBJ",832 "2nd BD",833 "",834 "",835 }836 },837 {838 &COLEV, 0x52, "0x4000052-COLEV", 0x1F1F,839 {840 "",841 "",842 "",843 "",844 "Coefficient EVA (5 bits,W)",845 "",846 "",847 "",848 "",849 "",850 "",851 "",852 "Coefficient EVB (5 bits,W)",853 "",854 "",855 "",856 }857 },858 {859 &COLY, 0x54, "0x4000054-COLEY", 0x001F,860 {861 "",862 "",863 "",864 "",865 "Coefficient EVY (5 bits,W)",866 "",867 "",868 "",869 "",870 "",871 "",872 "",873 "",874 "",875 "",876 "",877 }878 },879 {880 NULL, 0x60, "0x4000060-SG10_L", 0x007F,881 {882 "",883 "",884 "Sweep Shifts (3 bits)",885 "Sweep addition/decrease",886 "",887 "",888 "Sweep Time (3 bits)",889 "",890 "",891 "",892 "",893 "",894 "",895 "",896 "",897 "",898 }899 },900 {901 NULL, 0x62, "0x4000062-SG10_H", 0xFFFF,902 {903 "",904 "",905 "",906 "",907 "",908 "Sound Length (6 bits,W)",909 "",910 "Waveform Type (2 bits)",911 "",912 "",913 "Envelope Steps (3 bits)",914 "Envelope Attenuate/Amplify",915 "",916 "",917 "",918 "Envelope Initial Value",919 }920 },921 {922 NULL, 0x64, "0x4000064-SG11", 0xC7FF,923 {924 "",925 "",926 "",927 "",928 "",929 "",930 "",931 "",932 "",933 "",934 "Frequency (11 bits,W)",935 "",936 "",937 "",938 "Sound Continuous/Counter",939 "Initialization (W)",940 }941 },942 {943 NULL, 0x68, "0x4000068-SG20", 0xFFFF,944 {945 "",946 "",947 "",948 "",949 "",950 "Sound Length (6 bits,W)",951 "",952 "Waveform Type (2 bits)",953 "",954 "",955 "Envelope Steps (3 bits)",956 "Envelope Attenuate/Amplify",957 "",958 "",959 "",960 "Envelope Initial Value",961 }962 },963 {964 NULL, 0x6C, "0x400006C-SG21", 0xC7FF,965 {966 "",967 "",968 "",969 "",970 "",971 "",972 "",973 "",974 "",975 "",976 "Frequency (11 bits,W)",977 "",978 "",979 "",980 "Sound Continuous/Counter",981 "Initialization (W)",982 }983 },984 {985 NULL, 0x70, "0x4000070-SG30_L", 0x00E0,986 {987 "",988 "",989 "",990 "",991 "",992 "Waveform 32/64 Steps",993 "Waveform Bank 0/1",994 "Sound Output",995 "",996 "",997 "",998 "",999 "",1000 "",1001 "",1002 "",1003 }1004 },1005 {1006 NULL, 0x72, "0x4000072-SG30_H", 0xE0FF,1007 {1008 "",1009 "",1010 "",1011 "",1012 "",1013 "",1014 "",1015 "Sound Length (8 bits,W)",1016 "",1017 "",1018 "",1019 "",1020 "",1021 "",1022 "Output Level (2 bits)",1023 "Forced 3/4 Output Level",1024 }1025 },1026 {1027 NULL, 0x74, "0x4000074-SG31", 0xC7FF,1028 {1029 "",1030 "",1031 "",1032 "",1033 "",1034 "",1035 "",1036 "",1037 "",1038 "",1039 "Frequency (11 bits,W)",1040 "",1041 "",1042 "",1043 "Sound Continuous/Counter",1044 "Initialization (W)",1045 }1046 },1047 {1048 NULL, 0x78, "0x4000078-SG40", 0xFF3F,1049 {1050 "",1051 "",1052 "",1053 "",1054 "",1055 "Sound Length (6 bits,W)",1056 "",1057 "",1058 "",1059 "",1060 "Envelope Steps (3 bits)",1061 "Envelope Attenuate/Amplify",1062 "",1063 "",1064 "",1065 "Envelope Initial Value",1066 }1067 },1068 {1069 NULL, 0x7C, "0x400007C-SG41", 0xC0FF,1070 {1071 "",1072 "",1073 "Dividing Ratio Freq. (3 bits)",1074 "Counter 15/7 Steps",1075 "",1076 "",1077 "",1078 "Counter Shift Clock (4 bits)",1079 "",1080 "",1081 "",1082 "",1083 "",1084 "",1085 "Sound Continuous/Counter",1086 "Initialization (W)",1087 }1088 },1089 {1090 NULL, 0x80, "0x4000080-SGCNT0_L", 0xFF77,1091 {1092 "",1093 "",1094 "Right Volume (3 bits)",1095 "",1096 "",1097 "",1098 "Left Volume (3 bits)",1099 "",1100 "Channel 1->Right",1101 "Channel 2->Right",1102 "Channel 3->Right",1103 "Channel 4->Right",1104 "Channel 1->Left",1105 "Channel 2->Left",1106 "Channel 3->Left",1107 "Channel 4->Left",1108 }1109 },1110 {1111 NULL, 0x82, "0x4000082-SGCNT0_H", 0xFF1F,1112 {1113 "",1114 "Sound 1-4 Volume (2 bits)",1115 "DMA Sound A Volume",1116 "DMA Sound B Volume",1117 "",1118 "",1119 "",1120 "",1121 "DMA Sound A->Right",1122 "DMA Sound A->Left",1123 "DMA Sound A Timer",1124 "DMA Sound A Reset FIFO",1125 "DMA Sound B->Right",1126 "DMA Sound B->Left",1127 "DMA Sound B Timer",1128 "DMA Sound B Reset FIFO",1129 }1130 },1131 {1132 NULL, 0x84, "0x4000084-SGCNT1", 0x0080,1133 {1134 "Sound 1 On",1135 "Sound 2 On",1136 "Sound 3 On",1137 "Sound 4 On",1138 "",1139 "",1140 "",1141 "Master Sound Enable",1142 "",1143 "",1144 "",1145 "",1146 "",1147 "",1148 "",1149 "",1150 }1151 },1152 {1153 NULL, 0x88, "0x4000088-SGBIAS", 0xC3FF,1154 {1155 "",1156 "",1157 "",1158 "",1159 "",1160 "",1161 "",1162 "",1163 "",1164 "Bias Level (10 bits)",1165 "",1166 "",1167 "",1168 "",1169 "",1170 "Sampling Rate (2 bits)",1171 }1172 },1173 {1174 NULL, 0xA0, "0x40000A0-SIGFIFOA_L", 0xFFFF,1175 {1176 "",1177 "",1178 "",1179 "",1180 "",1181 "",1182 "",1183 "Data 0 (8 bits)",1184 "",1185 "",1186 "",1187 "",1188 "",1189 "",1190 "",1191 "Data 1 (8 bits)",1192 }1193 },1194 {1195 NULL, 0xA2, "0x40000A2-SIGFIFOA_H", 0xFFFF,1196 {1197 "",1198 "",1199 "",1200 "",1201 "",1202 "",1203 "",1204 "Data 2 (8 bits)",1205 "",1206 "",1207 "",1208 "",1209 "",1210 "",1211 "",1212 "Data 3 (8 bits)",1213 }1214 },1215 {1216 NULL, 0xA4, "0x40000A4-SIGFIFOB_L", 0xFFFF,1217 {1218 "",1219 "",1220 "",1221 "",1222 "",1223 "",1224 "",1225 "Data 0 (8 bits)",1226 "",1227 "",1228 "",1229 "",1230 "",1231 "",1232 "",1233 "Data 1 (8 bits)",1234 }1235 },1236 {1237 NULL, 0xA6, "0x40000A6-SIGFIFOB_H", 0xFFFF,1238 {1239 "",1240 "",1241 "",1242 "",1243 "",1244 "",1245 "",1246 "Data 2 (8 bits)",1247 "",1248 "",1249 "",1250 "",1251 "",1252 "",1253 "",1254 "Data 3 (8 bits)",1255 }1256 },1257 {1258 &DM0SAD_L, 0xB0, "0x40000B0-DM0SAD_L", 0xFFFF,1259 {1260 "",1261 "",1262 "",1263 "",1264 "",1265 "",1266 "",1267 "",1268 "",1269 "",1270 "",1271 "",1272 "",1273 "",1274 "",1275 "Source Address (lower 16 bits)",1276 }1277 },1278 {1279 &DM0SAD_H, 0xB2, "0x40000B2-DM0SAD_H", 0x07FF,1280 {1281 "",1282 "",1283 "",1284 "",1285 "",1286 "",1287 "",1288 "",1289 "",1290 "",1291 "Source Address (upper 11 bits)",1292 "",1293 "",1294 "",1295 "",1296 "",1297 }1298 },1299 {1300 &DM0DAD_L, 0xB4, "0x40000B4-DM0DAD_L", 0xFFFF,1301 {1302 "",1303 "",1304 "",1305 "",1306 "",1307 "",1308 "",1309 "",1310 "",1311 "",1312 "",1313 "",1314 "",1315 "",1316 "",1317 "Destination Address (lower 16 bits)",1318 }1319 },1320 {1321 &DM0DAD_H, 0xB6, "0x40000B6-DM0DAD_H", 0x07FF,1322 {1323 "",1324 "",1325 "",1326 "",1327 "",1328 "",1329 "",1330 "",1331 "",1332 "",1333 "Destination Address (upper 11 bits)",1334 "",1335 "",1336 "",1337 "",1338 "",1339 }1340 },1341 {1342 &DM0CNT_L, 0xB8, "0x40000B8-DM0CNT_L", 0x3FFF,1343 {1344 "",1345 "",1346 "",1347 "",1348 "",1349 "",1350 "",1351 "",1352 "",1353 "",1354 "",1355 "",1356 "",1357 "Count (14 bits)",1358 "",1359 "",1360 }1361 },1362 {1363 &DM0CNT_H, 0xBA, "0x40000BA-DM0CNT_H", 0xF7E0,1364 {1365 "",1366 "",1367 "",1368 "",1369 "",1370 "",1371 "Destination Address Control (2 bits)",1372 "",1373 "Source Address Control (2 bits)",1374 "Repeat",1375 "Transfer Type",1376 "",1377 "",1378 "Start Timing (2 bits)",1379 "Interrupt Request",1380 "Enable",1381 }1382 },1383 {1384 &DM1SAD_L, 0xBC, "0x40000BC-DM1SAD_L", 0xFFFF,1385 {1386 "",1387 "",1388 "",1389 "",1390 "",1391 "",1392 "",1393 "",1394 "",1395 "",1396 "",1397 "",1398 "",1399 "",1400 "",1401 "Source Address (lower 16 bits)",1402 }1403 },1404 {1405 &DM1SAD_H, 0xBE, "0x40000BE-DM1SAD_H", 0x0FFF,1406 {1407 "",1408 "",1409 "",1410 "",1411 "",1412 "",1413 "",1414 "",1415 "",1416 "",1417 "",1418 "Source Address (upper 12 bits)",1419 "",1420 "",1421 "",1422 "",1423 }1424 },1425 {1426 &DM1DAD_L, 0xC0, "0x40000C0-DM1DAD_L", 0xFFFF,1427 {1428 "",1429 "",1430 "",1431 "",1432 "",1433 "",1434 "",1435 "",1436 "",1437 "",1438 "",1439 "",1440 "",1441 "",1442 "",1443 "Destination Address (lower 16 bits)",1444 }1445 },1446 {1447 &DM1DAD_H, 0xC2, "0x40000C2-DM1DAD_H", 0x07FF,1448 {1449 "",1450 "",1451 "",1452 "",1453 "",1454 "",1455 "",1456 "",1457 "",1458 "",1459 "Destination Address (upper 11 bits)",1460 "",1461 "",1462 "",1463 "",1464 "",1465 }1466 },1467 {1468 &DM1CNT_L, 0xC4, "0x40000C4-DM1CNT_L", 0x3FFF,1469 {1470 "",1471 "",1472 "",1473 "",1474 "",1475 "",1476 "",1477 "",1478 "",1479 "",1480 "",1481 "",1482 "",1483 "Count (14 bits)",1484 "",1485 "",1486 }1487 },1488 {1489 &DM1CNT_H, 0xC6, "0x40000C6-DM1CNT_H", 0xF7E0,1490 {1491 "",1492 "",1493 "",1494 "",1495 "",1496 "",1497 "Destination Address Control (2 bits)",1498 "",1499 "Source Address Control (2 bits)",1500 "Repeat",1501 "Transfer Type",1502 "",1503 "",1504 "Start Timing (2 bits)",1505 "Interrupt Request",1506 "Enable",1507 }1508 },1509 {1510 &DM2SAD_L, 0xC8, "0x40000C8-DM2SAD_L", 0xFFFF,1511 {1512 "",1513 "",1514 "",1515 "",1516 "",1517 "",1518 "",1519 "",1520 "",1521 "",1522 "",1523 "",1524 "",1525 "",1526 "",1527 "Source Address (lower 16 bits)",1528 }1529 },1530 {1531 &DM2SAD_H, 0xCA, "0x40000CA-DM2SAD_H", 0x0FFF,1532 {1533 "",1534 "",1535 "",1536 "",1537 "",1538 "",1539 "",1540 "",1541 "",1542 "",1543 "",1544 "Source Address (upper 12 bits)",1545 "",1546 "",1547 "",1548 "",1549 }1550 },1551 {1552 &DM2DAD_L, 0xCC, "0x40000CC-DM2DAD_L", 0xFFFF,1553 {1554 "",1555 "",1556 "",1557 "",1558 "",1559 "",1560 "",1561 "",1562 "",1563 "",1564 "",1565 "",1566 "",1567 "",1568 "",1569 "Destination Address (lower 16 bits)",1570 }1571 },1572 {1573 &DM2DAD_H, 0xCE, "0x40000CE-DM2DAD_H", 0x07FF,1574 {1575 "",1576 "",1577 "",1578 "",1579 "",1580 "",1581 "",1582 "",1583 "",1584 "",1585 "Destination Address (upper 11 bits)",1586 "",1587 "",1588 "",1589 "",1590 "",1591 }1592 },1593 {1594 &DM2CNT_L, 0xD0, "0x40000D0-DM2CNT_L", 0x3FFF,1595 {1596 "",1597 "",1598 "",1599 "",1600 "",1601 "",1602 "",1603 "",1604 "",1605 "",1606 "",1607 "",1608 "",1609 "Count (14 bits)",1610 "",1611 "",1612 }1613 },1614 {1615 &DM2CNT_H, 0xD2, "0x40000D2-DM2CNT_H", 0xF7E0,1616 {1617 "",1618 "",1619 "",1620 "",1621 "",1622 "",1623 "Destination Address Control (2 bits)",1624 "",1625 "Source Address Control (2 bits)",1626 "Repeat",1627 "Transfer Type",1628 "",1629 "",1630 "Start Timing (2 bits)",1631 "Interrupt Request",1632 "Enable",1633 }1634 },1635 {1636 &DM3SAD_L, 0xD4, "0x40000D4-DM3SAD_L", 0xFFFF,1637 {1638 "",1639 "",1640 "",1641 "",1642 "",1643 "",1644 "",1645 "",1646 "",1647 "",1648 "",1649 "",1650 "",1651 "",1652 "",1653 "Source Address (lower 16 bits)",1654 }1655 },1656 {1657 &DM3SAD_H, 0xD6, "0x40000D6-DM3SAD_H", 0x0FFF,1658 {1659 "",1660 "",1661 "",1662 "",1663 "",1664 "",1665 "",1666 "",1667 "",1668 "",1669 "",1670 "Source Address (upper 12 bits)",1671 "",1672 "",1673 "",1674 "",1675 }1676 },1677 {1678 &DM3DAD_L, 0xD8, "0x40000D8-DM3DAD_L", 0xFFFF,1679 {1680 "",1681 "",1682 "",1683 "",1684 "",1685 "",1686 "",1687 "",1688 "",1689 "",1690 "",1691 "",1692 "",1693 "",1694 "",1695 "Destination Address (lower 16 bits)",1696 }1697 },1698 {1699 &DM3DAD_H, 0xDA, "0x40000DA-DM3DAD_H", 0x0FFF,1700 {1701 "",1702 "",1703 "",1704 "",1705 "",1706 "",1707 "",1708 "",1709 "",1710 "",1711 "",1712 "Destination Address (upper 12 bits)",1713 "",1714 "",1715 "",1716 "",1717 }1718 },1719 {1720 &DM3CNT_L, 0xDC, "0x40000DC-DM3CNT_L", 0xFFFF,1721 {1722 "",1723 "",1724 "",1725 "",1726 "",1727 "",1728 "",1729 "",1730 "",1731 "",1732 "",1733 "",1734 "",1735 "",1736 "",1737 "Count (16 bits)",1738 }1739 },1740 {1741 &DM3CNT_H, 0xDE, "0x40000DE-DM3CNT_H", 0xFFE0,1742 {1743 "",1744 "",1745 "",1746 "",1747 "",1748 "",1749 "Destination Address Control (2 bits)",1750 "",1751 "Source Address Control (2 bits)",1752 "Repeat",1753 "Transfer Type",1754 "Game Pak Data Request",1755 "",1756 "Start Timing (2 bits)",1757 "Interrupt Request",1758 "Enable",1759 }1760 },1761 {1762 &TM0D, 0x100, "0x4000100-TM0D", 0xFFFF,1763 {1764 "",1765 "",1766 "",1767 "",1768 "",1769 "",1770 "",1771 "",1772 "",1773 "",1774 "",1775 "",1776 "",1777 "",1778 "",1779 "Timer Counter (16 bits)",1780 }1781 },1782 {1783 &TM0CNT, 0x102, "0x4000102-TM0CNT", 0x00C7,1784 {1785 "",1786 "Scalar Selection (2 bits)",1787 "Count Up",1788 "",1789 "",1790 "",1791 "Interrupt Request",1792 "Enable",1793 "",1794 "",1795 "",1796 "",1797 "",1798 "",1799 "",1800 "",1801 }1802 },1803 {1804 &TM1D, 0x104, "0x4000104-TM1D", 0xFFFF,1805 {1806 "",1807 "",1808 "",1809 "",1810 "",1811 "",1812 "",1813 "",1814 "",1815 "",1816 "",1817 "",1818 "",1819 "",1820 "",1821 "Timer Counter (16 bits)",1822 }1823 },1824 {1825 &TM1CNT, 0x106, "0x4000106-TM1CNT", 0x00C7,1826 {1827 "",1828 "Scalar Selection (2 bits)",1829 "Count Up",1830 "",1831 "",1832 "",1833 "Interrupt Request",1834 "Enable",1835 "",1836 "",1837 "",1838 "",1839 "",1840 "",1841 "",1842 "",1843 }1844 },1845 {1846 &TM2D, 0x108, "0x4000108-TM2D", 0xFFFF,1847 {1848 "",1849 "",1850 "",1851 "",1852 "",1853 "",1854 "",1855 "",1856 "",1857 "",1858 "",1859 "",1860 "",1861 "",1862 "",1863 "Timer Counter (16 bits)",1864 }1865 },1866 {1867 &TM2CNT, 0x10A, "0x400010A-TM2CNT", 0x00C7,1868 {1869 "",1870 "Scalar Selection (2 bits)",1871 "Count Up",1872 "",1873 "",1874 "",1875 "Interrupt Request",1876 "Enable",1877 "",1878 "",1879 "",1880 "",1881 "",1882 "",1883 "",1884 "",1885 }1886 },1887 {1888 &TM3D, 0x10C, "0x400010C-TM3D", 0xFFFF,1889 {1890 "",1891 "",1892 "",1893 "",1894 "",1895 "",1896 "",1897 "",1898 "",1899 "",1900 "",1901 "",1902 "",1903 "",1904 "",1905 "Timer Counter (16 bits)",1906 }1907 },1908 {1909 &TM3CNT, 0x10E, "0x400010E-TM3CNT", 0x00C7,1910 {1911 "",1912 "Scalar Selection (2 bits)",1913 "Count Up",1914 "",1915 "",1916 "",1917 "Interrupt Request",1918 "Enable",1919 "",1920 "",1921 "",1922 "",1923 "",1924 "",1925 "",1926 "",1927 }1928 },1929 {1930 &P1, 0x130, "0x4000130-P1", 0x03FF,1931 {1932 "A",1933 "B",1934 "Select",1935 "Start",1936 "Right",1937 "Left",1938 "Up",1939 "Down",1940 "Shoulder Right",1941 "Shoulder Left",1942 "",1943 "",1944 "",1945 "",1946 "",1947 "",1948 }1949 },1950 {1951 NULL, 0x132, "0x4000132-P1CNT", 0xC3FF,1952 {1953 "A",1954 "B",1955 "Select",1956 "Start",1957 "Right",1958 "Left",1959 "Up",1960 "Down",1961 "Shoulder Right",1962 "Shoulder Left",1963 "",1964 "",1965 "",1966 "",1967 "Interrupt Request",1968 "Interrupt Condition",1969 }1970 },1971 {1972 &IE, 0x200, "0x4000200-IE", 0x3FFF,1973 {1974 "VBlank",1975 "HBlank",1976 "VCount",1977 "Timer 0",1978 "Timer 1",1979 "Timer 2",1980 "Timer 3",1981 "Serial",1982 "DMA 0",1983 "DMA 1",1984 "DMA 2",1985 "DMA 3",1986 "Keypad",1987 "Game Pak",1988 "",1989 "",1990 }1991 },1992 {1993 &IF, 0x202, "0x4000202-IF", 0x0000,1994 {1995 "VBlank",1996 "HBlank",1997 "VCount",1998 "Timer 0",1999 "Timer 1",2000 "Timer 2",2001 "Timer 3",2002 "Serial",2003 "DMA 0",2004 "DMA 1",2005 "DMA 2",2006 "DMA 3",2007 "Keypad",2008 "Game Pak",2009 "",2010 "",2011 }2012 },2013 {2014 NULL, 0x204, "0x4000204-WAITCNT", 0x5FFF,2015 {2016 "",2017 "SRAM Wait Control (2 bits)",2018 "",2019 "Wait State 0 First Access (2 bits)",2020 "Wait State 0 Second Access",2021 "",2022 "Wait State 1 First Access (2 bits)",2023 "Wait State 1 Second Access",2024 "",2025 "Wait State 2 First Access (2 bits)",2026 "Wait State 2 Second Access",2027 "",2028 "PHI Terminal Output (2 bits)",2029 "",2030 "Game Pak Prefetch Buffer",2031 "Game Pak Type Flag",2032 }2033 },2034 {2035 &IME, 0x208, "0x4000208-IME", 0x0001,2036 {2037 "Master Interrupt Enable",2038 "",2039 "",2040 "",2041 "",2042 "",2043 "",2044 "",2045 "",2046 "",2047 "",2048 "",2049 "",2050 "",2051 "",2052 "",2053 }2054 },2055 {2056 NULL, 0x300, "0x4000300-HALTCNT", 0x8001,2057 {2058 "First Boot",2059 "",2060 "",2061 "",2062 "",2063 "",2064 "",2065 "",2066 "",2067 "",2068 "",2069 "",2070 "",2071 "",2072 "",2073 "Power Down",2074 }2075 },2076 };2078 #endif // VBA_IOVIEWERREGS_H