From 451c16f4cb00ebb8f03d7fad4fa7b7d46bc60fe5 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 16 Oct 2013 22:23:32 -0700 Subject: [PATCH] Fix overwriting DISPSTAT with fixed values for the lower bits --- src/gba/gba-io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gba/gba-io.c b/src/gba/gba-io.c index 07d332f30..3ff51f95c 100644 --- a/src/gba/gba-io.c +++ b/src/gba/gba-io.c @@ -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;