GBA I/O: Mask off WAITCNT bits that cannot be written (fixes #457)

This commit is contained in:
Jeffrey Pfau 2016-12-23 15:41:11 -08:00
parent 6eadd35ee6
commit 9d54e242e3
2 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ Bugfixes:
- GB: Properly initialize sramRealVf variable
- Qt: Fix Apply button for key and controller configurations
- GB Video: Initialize LCDC in renderer
- GBA I/O: Mask off WAITCNT bits that cannot be written
Misc:
- SDL: Remove scancode key input
- GBA Video: Clean up unused timers

View File

@ -535,6 +535,7 @@ void GBAIOWrite(struct GBA* gba, uint32_t address, uint16_t value) {
// Interrupts and misc
case REG_WAITCNT:
value &= 0x5FFF;
GBAAdjustWaitstates(gba, value);
break;
case REG_IE: