diff --git a/desmume/src/arm_jit.cpp b/desmume/src/arm_jit.cpp index 6bc0334b7..ec62fd094 100644 --- a/desmume/src/arm_jit.cpp +++ b/desmume/src/arm_jit.cpp @@ -479,7 +479,7 @@ static GPVar bb_profiler_entry; c.mov(rhs, reg_pos_ptr(0)); \ if (!imm) imm = 31; \ c.sar(rhs, imm); \ - c.sets(rcf.r8Lo()); + imm==31?c.sets(rcf.r8Lo()):c.setc(rcf.r8Lo()); #define ROR_IMM \ JIT_COMMENT("ROR_IMM"); \