From f45b7c47c84b148845d24492dcbb2c790912b953 Mon Sep 17 00:00:00 2001 From: joevt Date: Tue, 9 Apr 2024 02:47:29 -0700 Subject: [PATCH] poweropcodes: Fix srq. Test bit 26 of rB instead of testing for >= 0x20 to determine which operation to perform. --- cpu/ppc/poweropcodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/ppc/poweropcodes.cpp b/cpu/ppc/poweropcodes.cpp index 4ae09ec..4f0758b 100644 --- a/cpu/ppc/poweropcodes.cpp +++ b/cpu/ppc/poweropcodes.cpp @@ -662,7 +662,7 @@ void dppc_interpreter::power_srq() { ppc_grab_regssab(ppc_cur_instruction); unsigned rot_sh = ppc_result_b & 0x1F; - if (ppc_result_b >= 0x20) { + if (ppc_result_b & 0x20) { ppc_result_a = 0; } else { ppc_result_a = ppc_result_d >> rot_sh;