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) {
|
||||
// Video
|
||||
case REG_DISPSTAT:
|
||||
value &= 0xFFF8;
|
||||
GBAVideoWriteDISPSTAT(&gba->video, value);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue