Fixed DMG timing regression
This commit is contained in:
parent
7706b8727a
commit
0a2d6e6dcb
@ -496,7 +496,7 @@ void GB_display_run(GB_gameboy_t *gb, uint8_t cycles)
|
|||||||
gb->io_registers[GB_IO_STAT] |= 2;
|
gb->io_registers[GB_IO_STAT] |= 2;
|
||||||
}
|
}
|
||||||
GB_STAT_update(gb);
|
GB_STAT_update(gb);
|
||||||
if (gb->current_line != 0) {
|
if (gb->current_line != 0 || !gb->is_cgb) {
|
||||||
gb->io_registers[GB_IO_STAT] &= ~3;
|
gb->io_registers[GB_IO_STAT] &= ~3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user