Minor adjustments to the CGB WX glitch

This commit is contained in:
Lior Halphon
2024-08-02 20:45:17 +03:00
parent 53fc5a74ed
commit 47cdefd3d0
2 changed files with 3 additions and 3 deletions

View File

@@ -1399,7 +1399,9 @@ static void write_high_memory(GB_gameboy_t *gb, uint16_t addr, uint8_t value)
gb->wy_triggered = true;
}
case GB_IO_WX:
gb->io_registers[addr & 0xFF] = value;
GB_update_wx_glitch(gb);
break;
case GB_IO_IF:
case GB_IO_SCX:
case GB_IO_SCY:

View File

@@ -431,9 +431,7 @@ static void stop(GB_gameboy_t *gb, uint8_t opcode)
gb->speed_switch_freeze = 1;
}
if (interrupt_pending) {
}
else {
if (!interrupt_pending) {
gb->speed_switch_halt_countdown = 0x20008;
gb->speed_switch_freeze = 5;
}