From 15a2e43b2bc280e85daefaee5f0ba53dd57dab06 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 20 Jul 2013 01:40:17 -0700 Subject: [PATCH] Fix read/write 0x0400020A --- src/gba/gba-io.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gba/gba-io.c b/src/gba/gba-io.c index c4e4cec85..fd71587d7 100644 --- a/src/gba/gba-io.c +++ b/src/gba/gba-io.c @@ -109,6 +109,9 @@ void GBAIOWrite(struct GBA* gba, uint32_t address, uint16_t value) { case REG_IME: GBAWriteIME(gba, value); break; + case 0x20A: + // Some bad interrupt libraries will write to this + break; default: GBALog(GBA_LOG_STUB, "Stub I/O register write: %03x", address); break; @@ -209,6 +212,9 @@ uint16_t GBAIORead(struct GBA* gba, uint32_t address) { case REG_IME: // Handled transparently by registers break; + case 0x20A: + // Some bad interrupt libraries will read from this + break; default: GBALog(GBA_LOG_STUB, "Stub I/O register read: %03x", address); break;