From f5663675a5ac78c2927fe0796df92f72be421535 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 25 Jun 2016 01:34:13 -0700 Subject: [PATCH] GB I/O: Fix STAT writing --- src/gb/io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gb/io.c b/src/gb/io.c index 9cb6d221c..3317acdf9 100644 --- a/src/gb/io.c +++ b/src/gb/io.c @@ -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) {