From 80b1275e0791a381b71b78f9daab30ff173f887a Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sun, 18 Mar 2018 20:08:45 +0200 Subject: [PATCH] Fix stat_lyc_onoff --- Core/display.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Core/display.c b/Core/display.c index dda9fab..1adcc50 100755 --- a/Core/display.c +++ b/Core/display.c @@ -311,11 +311,9 @@ static void update_display_state(GB_gameboy_t *gb, uint8_t cycles) if (!(gb->io_registers[GB_IO_LCDC] & 0x80)) { /* LCD is disabled, state is constant */ - /* When the LCD is off, LY is 0 and STAT mode is 0. - Todo: Verify the LY=LYC flag should be on. */ + /* When the LCD is off, LY is 0 and STAT mode is 0. */ gb->io_registers[GB_IO_LY] = 0; gb->io_registers[GB_IO_STAT] &= ~3; - gb->io_registers[GB_IO_STAT] |= 4; gb->effective_scx = gb->io_registers[GB_IO_SCX]; if (gb->hdma_on_hblank) { gb->hdma_on_hblank = false;