Skip to content

Commit 356e74f

Browse files
joevtdingusdev
authored andcommitted
ppcdisasm: Cleanup spr calculation.
1 parent 3e8121c commit 356e74f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpu/ppc/ppcdisasm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,9 +1394,9 @@ void opc_group31(PPCDisasmContext* ctx) {
13941394
break;
13951395
}
13961396

1397-
auto ref_spr = (((ctx->instr_code >> 11) & 31) << 5) | ((ctx->instr_code >> 16) & 31);
13981397
auto spr_high = (ctx->instr_code >> 11) & 31;
13991398
auto spr_low = (ctx->instr_code >> 16) & 31;
1399+
auto ref_spr = (spr_high << 5) | spr_low;
14001400

14011401
switch (ext_opc) {
14021402
case 0: /* cmp */

0 commit comments

Comments
 (0)