From 34bd2341f9fb8d5e8bc57639cb0ec547c3b8596b Mon Sep 17 00:00:00 2001 From: yrp Date: Fri, 22 Nov 2024 22:03:13 -0800 Subject: Fix shrx, shlx, sarx, rorx --- arch/x86/il.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'arch/x86/il.cpp') diff --git a/arch/x86/il.cpp b/arch/x86/il.cpp index e6d704a6..3dd9f87a 100644 --- a/arch/x86/il.cpp +++ b/arch/x86/il.cpp @@ -2939,8 +2939,8 @@ bool GetLowLevelILForInstruction(Architecture* arch, const uint64_t addr, LowLev il.AddInstruction( WriteILOperand(il, xedd, addr, 0, 0, il.RotateRight(opOneLen, - ReadILOperand(il, xedd, addr, 0, 0), - ReadILOperand(il, xedd, addr, 1, 1) + ReadILOperand(il, xedd, addr, 1, 1), + ReadILOperand(il, xedd, addr, 2, 2) ))); break; @@ -2957,8 +2957,8 @@ bool GetLowLevelILForInstruction(Architecture* arch, const uint64_t addr, LowLev il.AddInstruction( WriteILOperand(il, xedd, addr, 0, 0, il.ArithShiftRight(opOneLen, - ReadILOperand(il, xedd, addr, 0, 0), - ReadILOperand(il, xedd, addr, 1, 1) + ReadILOperand(il, xedd, addr, 1, 1), + ReadILOperand(il, xedd, addr, 2, 2) ))); break; @@ -3128,8 +3128,8 @@ bool GetLowLevelILForInstruction(Architecture* arch, const uint64_t addr, LowLev il.AddInstruction( WriteILOperand(il, xedd, addr, 0, 0, il.ShiftLeft(opOneLen, - ReadILOperand(il, xedd, addr, 0, 0), - ReadILOperand(il, xedd, addr, 1, 1) + ReadILOperand(il, xedd, addr, 1, 1), + ReadILOperand(il, xedd, addr, 2, 2) ))); break; @@ -3137,8 +3137,8 @@ bool GetLowLevelILForInstruction(Architecture* arch, const uint64_t addr, LowLev il.AddInstruction( WriteILOperand(il, xedd, addr, 0, 0, il.LogicalShiftRight(opOneLen, - ReadILOperand(il, xedd, addr, 0, 0), - ReadILOperand(il, xedd, addr, 1, 1) + ReadILOperand(il, xedd, addr, 1, 1), + ReadILOperand(il, xedd, addr, 2, 2) ))); break; -- cgit v1.3.1