mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-08 23:10:45 +02:00
Fixed an edge case where jump-to breakpoints did not work as expected/took the slow path
This commit is contained in:
@@ -2853,7 +2853,7 @@ static jump_to_return_t test_jump_to_breakpoints(GB_gameboy_t *gb, uint16_t *add
|
||||
if (!gb->has_jump_to_breakpoints) return JUMP_TO_NONE;
|
||||
|
||||
if (!is_in_trivial_memory(gb->pc) || !is_in_trivial_memory(gb->pc + 2) ||
|
||||
!is_in_trivial_memory(gb->sp) || !is_in_trivial_memory(gb->sp + 1)) {
|
||||
!is_in_trivial_memory(gb->sp) || !is_in_trivial_memory(gb->sp - 1)) {
|
||||
return JUMP_TO_NONTRIVIAL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user