From f55c2549595e9380f005f1133f043d3d98db0fe1 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 12 Jul 2019 02:18:25 +0300 Subject: [PATCH] Fixed a regression that made ly_lyc_0_write and ly_lyc_write fail --- Core/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/memory.c b/Core/memory.c index 99ae190..868a245 100644 --- a/Core/memory.c +++ b/Core/memory.c @@ -663,7 +663,7 @@ static void write_high_memory(GB_gameboy_t *gb, uint16_t addr, uint8_t value) /* These are the states when LY changes, let the display routine call GB_STAT_update for use so it correctly handles T-cycle accurate LYC writes */ if (!GB_is_cgb(gb) || ( - gb->display_state != 6 && + gb->display_state != 35 && gb->display_state != 26 && gb->display_state != 15 && gb->display_state != 16)) {