From a58ce8aeb331ebc789e9a6fecfd479140f2bcc23 Mon Sep 17 00:00:00 2001 From: dingusdev <52434309+dingusdev@users.noreply.github.com> Date: Tue, 15 Nov 2022 08:01:57 -0700 Subject: [PATCH] Slight tweak to lscbx --- cpu/ppc/poweropcodes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpu/ppc/poweropcodes.cpp b/cpu/ppc/poweropcodes.cpp index c46ca88..f083f52 100644 --- a/cpu/ppc/poweropcodes.cpp +++ b/cpu/ppc/poweropcodes.cpp @@ -164,12 +164,12 @@ void dppc_interpreter::power_lscbx() { shift_amount -= 8; } - if (return_value == matching_byte) - break; - ppc_effective_address++; bytes_copied++; bytes_to_load--; + + if (return_value == matching_byte) + break; } ppc_state.spr[SPR::XER] = (ppc_state.spr[SPR::XER] & 0xFFFFFF80) | bytes_copied;