about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/sem.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2015-12-23 18:51:23 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2015-12-23 19:54:31 +0100
commit389c1230cf87fc8535ac1bdc1c2ffad08dd70ae2 (patch)
tree7fcfa0476d6123063e3cec6a86bb6eaefcda215d /miasm2/arch/x86/sem.py
parentf39a91b146c4a2eb8424f4ad8dec53b96a2a56ab (diff)
downloadmiasm-389c1230cf87fc8535ac1bdc1c2ffad08dd70ae2.tar.gz
miasm-389c1230cf87fc8535ac1bdc1c2ffad08dd70ae2.zip
X86: add pandn
Diffstat (limited to 'miasm2/arch/x86/sem.py')
-rw-r--r--miasm2/arch/x86/sem.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py
index 62b6b6b3..5fb7e34d 100644
--- a/miasm2/arch/x86/sem.py
+++ b/miasm2/arch/x86/sem.py
@@ -3248,6 +3248,13 @@ def pand(ir, instr, a, b):
     e.append(m2_expr.ExprAff(a, c))
     return e, []
 
+def pandn(ir, instr, a, b):
+    e = []
+    c = (a ^ a.mask) & b
+    # No flag affected
+    e.append(m2_expr.ExprAff(a, c))
+    return e, []
+
 
 def por(ir, instr, a, b):
     e = []
@@ -3861,6 +3868,7 @@ mnemo_func = {'mov': mov,
               ###
 
               "pand": pand,
+              "pandn": pandn,
               "por": por,
 
               "rdmsr": rdmsr,