all repos — mgba @ 6087ad8c5f2fb928b66f128cd581eaf2e98ae7a2

mGBA Game Boy Advance Emulator

Fix reading from DISPSTAT
Jeffrey Pfau jeffrey@endrift.com
Fri, 19 Apr 2013 21:40:57 -0700
commit

6087ad8c5f2fb928b66f128cd581eaf2e98ae7a2

parent

adfd8f68725fd7be9b7082af94c8d25c9f12768b

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

jump to
M src/gba/gba-io.csrc/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: