about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2015-11-16 13:58:00 +0100
committerAjax <commial@gmail.com>2015-11-16 14:02:39 +0100
commit2da0e5e8286eec6872af98fc9c2c541e69fc9c0c (patch)
treed0a0d487a086f151a2a6ef7f87a57ca6be2e6b87
parenta6c36a2db171f1aba2ea2d6fe9017e68f75cdf3e (diff)
downloadmiasm-2da0e5e8286eec6872af98fc9c2c541e69fc9c0c.tar.gz
miasm-2da0e5e8286eec6872af98fc9c2c541e69fc9c0c.zip
x86/sem: 'aam' af is undefined, but must be set to 0
-rw-r--r--miasm2/arch/x86/sem.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py
index a5f5d3b2..66c9cea0 100644
--- a/miasm2/arch/x86/sem.py
+++ b/miasm2/arch/x86/sem.py
@@ -2619,6 +2619,7 @@ def aam(ir, instr, a):
                          ])
     e += [m2_expr.ExprAff(mRAX[instr.mode], newEAX)]
     e += update_flag_arith(newEAX)
+    e.append(m2_expr.ExprAff(af, m2_expr.ExprInt1(0)))
     return e, []