mirror of https://github.com/mgba-emu/mgba.git
GBA I/O: Mask off WAITCNT bits that cannot be written (fixes #457)
This commit is contained in:
parent
76f33ef866
commit
c63b1f2704
1
CHANGES
1
CHANGES
|
@ -29,6 +29,7 @@ Bugfixes:
|
||||||
- GB: Properly initialize sramRealVf variable
|
- GB: Properly initialize sramRealVf variable
|
||||||
- Qt: Fix Apply button for key and controller configurations
|
- Qt: Fix Apply button for key and controller configurations
|
||||||
- GB Video: Initialize LCDC in renderer
|
- GB Video: Initialize LCDC in renderer
|
||||||
|
- GBA I/O: Mask off WAITCNT bits that cannot be written
|
||||||
Misc:
|
Misc:
|
||||||
- PSP2: Improved controller rumble
|
- PSP2: Improved controller rumble
|
||||||
- GB, GBA: Prevent loading null ROMs
|
- GB, GBA: Prevent loading null ROMs
|
||||||
|
|
|
@ -530,6 +530,7 @@ void GBAIOWrite(struct GBA* gba, uint32_t address, uint16_t value) {
|
||||||
|
|
||||||
// Interrupts and misc
|
// Interrupts and misc
|
||||||
case REG_WAITCNT:
|
case REG_WAITCNT:
|
||||||
|
value &= 0x5FFF;
|
||||||
GBAAdjustWaitstates(gba, value);
|
GBAAdjustWaitstates(gba, value);
|
||||||
break;
|
break;
|
||||||
case REG_IE:
|
case REG_IE:
|
||||||
|
|
Loading…
Reference in New Issue