Fix reading from DISPSTAT

This commit is contained in:
Jeffrey Pfau 2013-04-19 21:40:57 -07:00
parent adfd8f6872
commit 6087ad8c5f
1 changed files with 1 additions and 1 deletions

View File

@ -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: