GBA I/O: Ignore high bits on IME

This commit is contained in:
Vicki Pfau 2020-11-20 01:15:46 -08:00
parent c640819179
commit 54fba4c461
2 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ Emulation fixes:
- GBA DMA: Linger last DMA on bus (fixes mgba.io/i/301 and mgba.io/i/1320)
- GBA DMA: Fix ordering and timing of overlapping DMAs
- GBA I/O: Green swap register should be readable
- GBA I/O: Ignore high bits on IME
- GBA Memory: Improve gamepak prefetch timing
- GBA Memory: Stall on VRAM access in mode 2 (fixes mgba.io/i/190)
- GBA Memory: Improve robustness of Matrix memory support

View File

@ -557,7 +557,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: