mirror of https://github.com/bsnes-emu/bsnes.git
Fix timer bug; fixes #409
This commit is contained in:
parent
01f80a3f3e
commit
4ce643d5eb
|
@ -434,7 +434,7 @@ void GB_emulate_timer_glitch(GB_gameboy_t *gb, uint8_t old_tac, uint8_t new_tac)
|
|||
/* The bit used for overflow testing must have been 1 */
|
||||
if (gb->div_counter & old_clocks) {
|
||||
/* And now either the timer must be disabled, or the new bit used for overflow testing be 0. */
|
||||
if (!(new_tac & 4) || gb->div_counter & new_clocks) {
|
||||
if (!(new_tac & 4) || !(gb->div_counter & new_clocks)) {
|
||||
increase_tima(gb);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue