all repos — mgba @ 283a48613be2ee34040e73dcc5c6b8610f610415

mGBA Game Boy Advance Emulator

Read/write REG_IF
Jeffrey Pfau jeffrey@endrift.com
Fri, 19 Apr 2013 00:05:13 -0700
commit

283a48613be2ee34040e73dcc5c6b8610f610415

parent

9b1f3c3c732d31bedcaf9fc82d286da857f07511

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

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

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

case REG_IE: GBAWriteIE(gba, value); break; + case REG_IF: + value = gba->memory.io[REG_IF >> 1] & ~value; + break; case REG_IME: GBAWriteIME(gba, value); break;

@@ -110,6 +113,7 @@ case REG_DMA1CNT_HI:

case REG_DMA2CNT_HI: case REG_DMA3CNT_HI: case REG_IE: + case REG_IF: case REG_WAITCNT: case REG_IME: // Handled transparently by registers