mirror of https://github.com/mgba-emu/mgba.git
Fix reading from DISPSTAT
This commit is contained in:
parent
adfd8f6872
commit
6087ad8c5f
|
@ -99,7 +99,7 @@ void GBAIOWrite32(struct GBA* gba, uint32_t address, uint32_t value) {
|
||||||
uint16_t GBAIORead(struct GBA* gba, uint32_t address) {
|
uint16_t GBAIORead(struct GBA* gba, uint32_t address) {
|
||||||
switch (address) {
|
switch (address) {
|
||||||
case REG_DISPSTAT:
|
case REG_DISPSTAT:
|
||||||
return GBAVideoReadDISPSTAT(&gba->video);
|
return gba->memory.io[REG_DISPSTAT >> 1] | GBAVideoReadDISPSTAT(&gba->video);
|
||||||
break;
|
break;
|
||||||
case REG_DMA0CNT_LO:
|
case REG_DMA0CNT_LO:
|
||||||
case REG_DMA1CNT_LO:
|
case REG_DMA1CNT_LO:
|
||||||
|
|
Loading…
Reference in New Issue