This commit is contained in:
Lior Halphon 2018-02-20 23:04:35 +02:00
parent 56eac9f875
commit 5974092c94

View File

@ -21,8 +21,8 @@ static void stop(GB_gameboy_t *gb, uint8_t opcode)
{ {
GB_advance_cycles(gb, 4); GB_advance_cycles(gb, 4);
if (gb->io_registers[GB_IO_KEY1] & 0x1) { if (gb->io_registers[GB_IO_KEY1] & 0x1) {
/* Make sure we don't leave display_cycles not divisble by 4 in single speed mode */ /* Make sure we don't leave display_cycles not divisble by 8 in single speed mode */
if (gb->display_cycles % 4 == 2) { if (gb->display_cycles % 8 == 4) {
GB_advance_cycles(gb, 4); GB_advance_cycles(gb, 4);
} }