Miscellaneous bug fixes

This commit is contained in:
2024-10-19 22:56:23 -05:00
parent e9f5437c1f
commit 50903c7513
4 changed files with 15 additions and 19 deletions
+2 -2
View File
@@ -89,7 +89,7 @@ static int32_t busReadMisc(VB *sim, uint8_t address, int type) {
/* Unmapped */
switch (type) {
case VB_S8 : case VB_U8 : if (address & 3) return 0; break;
case VB_S16: case VB_U16: if (address & 1) return 0;
case VB_S16: case VB_U16: if (address & 2) return 0;
}
/* Access by register */
@@ -117,7 +117,7 @@ static void busWriteMisc(VB *sim, uint8_t address, int type, int32_t value) {
/* Unmapped */
switch (type) {
case VB_S8 : case VB_U8 : if (address & 3) return; break;
case VB_S16: case VB_U16: if (address & 1) return;
case VB_S16: case VB_U16: if (address & 2) return;
}
/* Access by register */