about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/sem.py
diff options
context:
space:
mode:
authorTim Blazytko <tim.blazytko@rub.de>2015-03-24 16:28:32 +0100
committerTim Blazytko <tim.blazytko@rub.de>2015-03-24 16:28:32 +0100
commit0042a08d20659ef5b23f1ae2b034f502a2f4d4af (patch)
treed1cf25fb17d04718b3695fccea9a72f2d1ab3e8c /miasm2/arch/x86/sem.py
parent9d6111f4ba840486d18457e900dc2cc8457c624a (diff)
downloadmiasm-0042a08d20659ef5b23f1ae2b034f502a2f4d4af.tar.gz
miasm-0042a08d20659ef5b23f1ae2b034f502a2f4d4af.zip
added semantics for x86 pxor
Diffstat (limited to '')
-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 94066519..f09e5057 100644
--- a/miasm2/arch/x86/sem.py
+++ b/miasm2/arch/x86/sem.py
@@ -302,6 +302,13 @@ def xor(ir, instr, a, b):
     return e, []
 
 
+def pxor(ir, instr, a, b):
+    e = []
+    c = a ^ b
+    # e += update_flag_logic(c)
+    e.append(m2_expr.ExprAff(a, c))
+    return e, []
+
 def l_or(ir, instr, a, b):
     e = []
     c = a | b
@@ -3138,6 +3145,7 @@ mnemo_func = {'mov': mov,
               'not': l_not,
               'cmp': l_cmp,
               'xor': xor,
+              'pxor': pxor,
               'or': l_or,
               'and': l_and,
               'test': l_test,