about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2015-02-13 13:59:12 +0100
committerCamille Mougey <commial@gmail.com>2015-02-13 13:59:12 +0100
commit9af3164437657d93916b3658c483d6c3e4949cd5 (patch)
treef887e075d836102208995d0122f5575433e56891
parent12d1f2f3b7ff01db52dba68f4abe8294257ad705 (diff)
parent8a27a796ffd54a6a3958745ab7b7ee45c11d613f (diff)
downloadmiasm-9af3164437657d93916b3658c483d6c3e4949cd5.tar.gz
miasm-9af3164437657d93916b3658c483d6c3e4949cd5.zip
Merge pull request #66 from serpilliere/movqu
X86: add movqu
-rw-r--r--miasm2/arch/x86/sem.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py
index 73ce8d1a..93e24350 100644
--- a/miasm2/arch/x86/sem.py
+++ b/miasm2/arch/x86/sem.py
@@ -2882,6 +2882,15 @@ def movd(ir, instr, a, b):
         e.append(ExprAff(a, b[0:32]))
     return e, []
 
+def movdqu(ir, instr, a, b):
+    e = []
+    if isinstance(a, ExprMem):
+        a = ExprMem(a.arg, b.size)
+    elif isinstance(b, ExprMem):
+        b = ExprMem(b.arg, a.size)
+    e.append(ExprAff(a, b))
+    return e, []
+
 
 def xorps(ir, instr, a, b):
     e = []
@@ -3275,6 +3284,7 @@ mnemo_func = {'mov': mov,
               "fnclex": fnclex,
               "str": l_str,
               "movd": movd,
+              "movdqu":movdqu,
               "movaps": movaps,
               "xorps": xorps,