From 6087ad8c5f2fb928b66f128cd581eaf2e98ae7a2 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 19 Apr 2013 21:40:57 -0700 Subject: [PATCH] Fix reading from DISPSTAT --- src/gba/gba-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gba/gba-io.c b/src/gba/gba-io.c index b9e1f3b54..8a91ea27e 100644 --- a/src/gba/gba-io.c +++ b/src/gba/gba-io.c @@ -99,7 +99,7 @@ void GBAIOWrite32(struct GBA* gba, uint32_t address, uint32_t value) { 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: