about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/sem.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2015-11-16 13:58:26 +0100
committerAjax <commial@gmail.com>2015-11-16 14:02:39 +0100
commitf4912f3704800fdbb179486a1b51e09c26841289 (patch)
treebdf8ecfb731468de85e24b51a58cf8c448602bd3 /miasm2/arch/x86/sem.py
parent2da0e5e8286eec6872af98fc9c2c541e69fc9c0c (diff)
downloadmiasm-f4912f3704800fdbb179486a1b51e09c26841289.tar.gz
miasm-f4912f3704800fdbb179486a1b51e09c26841289.zip
x86/sem: 'aad' af is undefined, but must be set to 0
Diffstat (limited to '')
-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 66c9cea0..f1784692 100644
--- a/miasm2/arch/x86/sem.py
+++ b/miasm2/arch/x86/sem.py
@@ -2635,6 +2635,7 @@ def aad(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, []