about summary refs log tree commit diff stats
path: root/miasm2/arch
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2015-11-17 15:15:10 +0100
committerserpilliere <serpilliere@users.noreply.github.com>2015-11-17 15:15:10 +0100
commit87c3fe46c6fbc5649b3a06d91bedfabbe3f11009 (patch)
tree6aeaee9c1febf68715359e580a27f8b39a64e95e /miasm2/arch
parenta49419dd5e16283b1663181a47cdc85b7eff14dc (diff)
parent08e54aa9dd67e85753174242fab356cc2d2767c9 (diff)
downloadmiasm-87c3fe46c6fbc5649b3a06d91bedfabbe3f11009.tar.gz
miasm-87c3fe46c6fbc5649b3a06d91bedfabbe3f11009.zip
Merge pull request #278 from commial/fix-x86-string
Fix x86 string
Diffstat (limited to '')
-rw-r--r--miasm2/arch/x86/sem.py4
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)