mirror of https://github.com/mgba-emu/mgba.git
GB I/O: Fix STAT writing
This commit is contained in:
parent
74caccd6df
commit
f5663675a5
|
@ -369,6 +369,7 @@ void GBIOWrite(struct GB* gb, unsigned address, uint8_t value) {
|
||||||
break;
|
break;
|
||||||
case REG_STAT:
|
case REG_STAT:
|
||||||
GBVideoWriteSTAT(&gb->video, value);
|
GBVideoWriteSTAT(&gb->video, value);
|
||||||
|
value = gb->video.stat;
|
||||||
break;
|
break;
|
||||||
case 0x50:
|
case 0x50:
|
||||||
if (gb->memory.romBase != gb->memory.rom) {
|
if (gb->memory.romBase != gb->memory.rom) {
|
||||||
|
|
Loading…
Reference in New Issue