diff options
| author | Ajax <commial@gmail.com> | 2015-11-17 14:28:21 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2015-11-17 14:28:21 +0100 |
| commit | 1a8ec0b4fbdef579882457da50778b8f9a333a16 (patch) | |
| tree | e6a4eecd0790c98c19cff4f44a160313366e79bc /miasm2/arch/x86/sem.py | |
| parent | 8ae6ae92482ae04811afcdc51b33e90a80bb255f (diff) | |
| download | miasm-1a8ec0b4fbdef579882457da50778b8f9a333a16.tar.gz miasm-1a8ec0b4fbdef579882457da50778b8f9a333a16.zip | |
x86/sem: fix cmps comparison
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/x86/sem.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index c39d2583..8a1c3974 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -924,7 +924,6 @@ def bswap(ir, instr, a): def cmps(ir, instr, size): - lbl_cmp = m2_expr.ExprId(ir.gen_label(), ir.IRDst.size) lbl_df_0 = m2_expr.ExprId(ir.gen_label(), ir.IRDst.size) lbl_df_1 = m2_expr.ExprId(ir.gen_label(), ir.IRDst.size) lbl_next = m2_expr.ExprId(ir.get_next_label(instr), ir.IRDst.size) @@ -933,7 +932,7 @@ def cmps(ir, instr, size): a = m2_expr.ExprMem(mRDI[instr.mode][:s], size) b = m2_expr.ExprMem(mRSI[instr.mode][:s], size) - e, extra = l_cmp(ir, instr, a, b) + e, _ = l_cmp(ir, instr, b, a) e0 = [] e0.append(m2_expr.ExprAff(a.arg, @@ -957,7 +956,6 @@ def cmps(ir, instr, size): def scas(ir, instr, size): - lbl_cmp = m2_expr.ExprId(ir.gen_label(), ir.IRDst.size) lbl_df_0 = m2_expr.ExprId(ir.gen_label(), ir.IRDst.size) lbl_df_1 = m2_expr.ExprId(ir.gen_label(), ir.IRDst.size) lbl_next = m2_expr.ExprId(ir.get_next_label(instr), ir.IRDst.size) |