Read/write REG_IF
Jeffrey Pfau jeffrey@endrift.com
Fri, 19 Apr 2013 00:05:13 -0700
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
src/gba/gba-io.c
→
src/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