mirror of https://github.com/mgba-emu/mgba.git
Fix read/write 0x0400020A
This commit is contained in:
parent
02cb9c56c5
commit
15a2e43b2b
|
@ -109,6 +109,9 @@ void GBAIOWrite(struct GBA* gba, uint32_t address, uint16_t value) {
|
||||||
case REG_IME:
|
case REG_IME:
|
||||||
GBAWriteIME(gba, value);
|
GBAWriteIME(gba, value);
|
||||||
break;
|
break;
|
||||||
|
case 0x20A:
|
||||||
|
// Some bad interrupt libraries will write to this
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
GBALog(GBA_LOG_STUB, "Stub I/O register write: %03x", address);
|
GBALog(GBA_LOG_STUB, "Stub I/O register write: %03x", address);
|
||||||
break;
|
break;
|
||||||
|
@ -209,6 +212,9 @@ uint16_t GBAIORead(struct GBA* gba, uint32_t address) {
|
||||||
case REG_IME:
|
case REG_IME:
|
||||||
// Handled transparently by registers
|
// Handled transparently by registers
|
||||||
break;
|
break;
|
||||||
|
case 0x20A:
|
||||||
|
// Some bad interrupt libraries will read from this
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
GBALog(GBA_LOG_STUB, "Stub I/O register read: %03x", address);
|
GBALog(GBA_LOG_STUB, "Stub I/O register read: %03x", address);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue