Fix overwriting DISPSTAT with fixed values for the lower bits

This commit is contained in:
Jeffrey Pfau 2013-10-16 22:23:32 -07:00
parent 3edb2da58d
commit 451c16f4cb
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ void GBAIOWrite(struct GBA* gba, uint32_t address, uint16_t value) {
switch (address) {
// Video
case REG_DISPSTAT:
value &= 0xFFF8;
GBAVideoWriteDISPSTAT(&gba->video, value);
break;