GBA I/O: Ignore high bits on IME

This commit is contained in:
Vicki Pfau 2020-11-20 01:15:46 -08:00
parent 2622a1a163
commit 535f35055d
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
0.8.5: (Future)
Emulation fixes:
- ARM: Fix Addressing mode 1 shifter on rs == pc (fixes mgba.io/i/1926)
- GBA I/O: Ignore high bits on IME
- GBA Memory: Mark Famicom Mini games 22 through 28 as non-mirroring
Other fixes:
- CMake: Fix build with downstream minizip that exports incompatible symbols

View File

@ -556,7 +556,7 @@ void GBAIOWrite(struct GBA* gba, uint32_t address, uint16_t value) {
GBATestIRQ(gba, 1);
return;
case REG_IME:
gba->memory.io[REG_IME >> 1] = value;
gba->memory.io[REG_IME >> 1] = value & 1;
GBATestIRQ(gba, 1);
return;
case REG_MAX: