git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 61f3c8d7f3d286db91956e4b7ef850eaa420365e
parent 54f45f2fd33d593f8550e529fb10f3afc7b1f932
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Fri, 28 Jul 2023 00:49:31 +0300

Fixed an edge case where jump-to breakpoints did not work as expected/took the slow path

Diffstat:
MCore/debugger.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Core/debugger.c b/Core/debugger.c @@ -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; }

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.