Fix reading from DISPSTAT
Jeffrey Pfau jeffrey@endrift.com
Fri, 19 Apr 2013 21:40:57 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/gba-io.c
→
src/gba/gba-io.c
@@ -99,7 +99,7 @@
uint16_t GBAIORead(struct GBA* gba, uint32_t address) { switch (address) { case REG_DISPSTAT: - return GBAVideoReadDISPSTAT(&gba->video); + return gba->memory.io[REG_DISPSTAT >> 1] | GBAVideoReadDISPSTAT(&gba->video); break; case REG_DMA0CNT_LO: case REG_DMA1CNT_LO: