Fix read/write 0x0400020A

This commit is contained in:
Jeffrey Pfau 2013-07-20 01:40:17 -07:00
parent 02cb9c56c5
commit 15a2e43b2b
1 changed files with 6 additions and 0 deletions

View File

@ -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;