GBA I/O: Ignore high bits on IME
Vicki Pfau vi@endrift.com
Fri, 20 Nov 2020 01:15:46 -0800
2 files changed,
2 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -32,6 +32,7 @@ - GBA BIOS: Make HLE BIOS calls interruptable (fixes mgba.io/i/1711 and mgba.io/i/1823)
- 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
M
src/gba/io.c
→
src/gba/io.c
@@ -557,7 +557,7 @@ gba->memory.io[REG_IF >> 1] = 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: