summaryrefslogtreecommitdiff
path: root/arch/x86/il.cpp
diff options
context:
space:
mode:
authoryrp <yrp604@protonmail.com>2024-11-22 22:03:13 -0800
committerMason Reed <mason@vector35.com>2024-11-25 15:45:06 -0500
commit34bd2341f9fb8d5e8bc57639cb0ec547c3b8596b (patch)
treec16cf68938e612c3f3c51c1c05eaee0c32f91fb3 /arch/x86/il.cpp
parentfce3b5ba8e08f22b0d1604ac350348d5077e8e90 (diff)
Fix shrx, shlx, sarx, rorx
Diffstat (limited to 'arch/x86/il.cpp')
-rw-r--r--arch/x86/il.cpp16
1 files changed, 8 insertions, 8 deletions
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;