all repos — mgba @ 15a2e43b2bc280e85daefaee5f0ba53dd57dab06

mGBA Game Boy Advance Emulator

Fix read/write 0x0400020A
Jeffrey Pfau jeffrey@endrift.com
Sat, 20 Jul 2013 01:40:17 -0700
commit

15a2e43b2bc280e85daefaee5f0ba53dd57dab06

parent

02cb9c56c58e2c69846a90a15a8580e9c03439a9

1 files changed, 6 insertions(+), 0 deletions(-)

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

@@ -109,6 +109,9 @@ break;

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;

@@ -208,6 +211,9 @@ case REG_IF:

case REG_WAITCNT: 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);