all repos — mgba @ f9b12a86122f4da639fbaad72c32ba7e4a97bb8f

mGBA Game Boy Advance Emulator

GBA I/O: Fix IRQ register write checks (fixes #1335)
Vicki Pfau vi@endrift.com
Sun, 03 Mar 2019 14:14:21 -0800
commit

f9b12a86122f4da639fbaad72c32ba7e4a97bb8f

parent

f9ff88302f3de521a0f71ffbe8d15d9bfd9d0c8c

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

jump to
M src/gba/io.csrc/gba/io.c

@@ -548,16 +548,16 @@ GBAAdjustWaitstates(gba, value);

break; case REG_IE: gba->memory.io[REG_IE >> 1] = value; - GBATestIRQ(gba->cpu, 1); + GBATestIRQ(gba, 1); return; case REG_IF: value = gba->memory.io[REG_IF >> 1] & ~value; gba->memory.io[REG_IF >> 1] = value; - GBATestIRQ(gba->cpu, 1); + GBATestIRQ(gba, 1); return; case REG_IME: gba->memory.io[REG_IME >> 1] = value; - GBATestIRQ(gba->cpu, 1); + GBATestIRQ(gba, 1); return; case REG_MAX: // Some bad interrupt libraries will write to this