poweropcodes: Fix srlq.

Test bit 26 of rB instead of testing for >= 0x20 to determine which operation to perform.
This commit is contained in:
joevt 2024-04-09 02:47:03 -07:00 committed by dingusdev
parent bce816139b
commit 916cb47b9d
1 changed files with 2 additions and 3 deletions

View File

@ -642,10 +642,9 @@ void dppc_interpreter::power_srlq() {
uint32_t r = (ppc_result_d >> rot_sh) | (ppc_result_d << (32 - rot_sh));
unsigned mask = power_rot_mask(rot_sh, 31);
if (ppc_result_b >= 0x20) {
if (ppc_result_b & 0x20) {
ppc_result_a = (ppc_state.spr[SPR::MQ] & mask);
}
else {
} else {
ppc_result_a = ((r & mask) | (ppc_state.spr[SPR::MQ] & ~mask));
}