GBA Video: Fix DISPSTAT write after refactor

This commit is contained in:
Jeffrey Pfau 2015-01-27 02:09:41 -08:00
parent e85e8968f2
commit 6d08ed3dd8
2 changed files with 2 additions and 2 deletions

View File

@ -297,7 +297,7 @@ void GBAIOWrite(struct GBA* gba, uint32_t address, uint16_t value) {
case REG_DISPSTAT:
value &= 0xFFF8;
GBAVideoWriteDISPSTAT(&gba->video, value);
break;
return;
// Audio
case REG_SOUND1CNT_LO:

View File

@ -169,7 +169,7 @@ int32_t GBAVideoProcessEvents(struct GBAVideo* video, int32_t cycles) {
void GBAVideoWriteDISPSTAT(struct GBAVideo* video, uint16_t value) {
video->p->memory.io[REG_DISPSTAT >> 1] &= 0x7;
video->p->memory.io[REG_DISPSTAT >> 1] |= value & 0xFFF8;
video->p->memory.io[REG_DISPSTAT >> 1] |= value;
uint16_t dispstat = video->p->memory.io[REG_DISPSTAT >> 1];