all repos — mgba @ 54fba4c4611141b45c76471cad9981dadb03389c

mGBA Game Boy Advance Emulator

GBA I/O: Ignore high bits on IME
Vicki Pfau vi@endrift.com
Fri, 20 Nov 2020 01:15:46 -0800
commit

54fba4c4611141b45c76471cad9981dadb03389c

parent

c640819179b9ef6f441bd97327634bd70c8842a8

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.csrc/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: