GB I/O: Fix STAT writing

This commit is contained in:
Jeffrey Pfau 2016-06-25 01:34:13 -07:00
parent 74caccd6df
commit f5663675a5
1 changed files with 1 additions and 0 deletions

View File

@ -369,6 +369,7 @@ void GBIOWrite(struct GB* gb, unsigned address, uint8_t value) {
break;
case REG_STAT:
GBVideoWriteSTAT(&gb->video, value);
value = gb->video.stat;
break;
case 0x50:
if (gb->memory.romBase != gb->memory.rom) {