From edf93abff176f8ab444532ca45f84a0ce3bc0c1e Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Tue, 18 Oct 2016 00:31:07 +0300 Subject: [PATCH] According to Mooneye's test ROMs, this behavior does not happen on a CGB --- Core/display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/display.c b/Core/display.c index b5ca847..8dde5a9 100755 --- a/Core/display.c +++ b/Core/display.c @@ -368,7 +368,7 @@ void GB_display_run(GB_gameboy_t *gb) } // LY = 144 interrupt bug - if (gb->io_registers[GB_IO_LY] == 144) { + if (gb->io_registers[GB_IO_LY] == 144 && !gb->is_cgb) { /* User requests an interrupt on Mode 2 */ if (gb->display_cycles % LINE_LENGTH < MODE2_LENGTH && gb->io_registers[GB_IO_STAT] & 0x20) { // Mode 2 gb->stat_interrupt_line = true;