mirror of https://github.com/mgba-emu/mgba.git
Fix overwriting DISPSTAT with fixed values for the lower bits
This commit is contained in:
parent
3edb2da58d
commit
451c16f4cb
|
@ -15,6 +15,7 @@ void GBAIOWrite(struct GBA* gba, uint32_t address, uint16_t value) {
|
||||||
switch (address) {
|
switch (address) {
|
||||||
// Video
|
// Video
|
||||||
case REG_DISPSTAT:
|
case REG_DISPSTAT:
|
||||||
|
value &= 0xFFF8;
|
||||||
GBAVideoWriteDISPSTAT(&gba->video, value);
|
GBAVideoWriteDISPSTAT(&gba->video, value);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue