about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/arch.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2018-02-08 15:57:53 +0100
committerAjax <commial@gmail.com>2018-02-09 17:36:23 +0100
commitc92be77fa7afa23dd06124325e9dc127ebb67e22 (patch)
treec3fd2394692e4d393378c84a404b6a1ac193d8c1 /miasm2/arch/x86/arch.py
parentd533aee1b340f21974dc3c255d04ac0d35a73e84 (diff)
downloadmiasm-c92be77fa7afa23dd06124325e9dc127ebb67e22.tar.gz
miasm-c92be77fa7afa23dd06124325e9dc127ebb67e22.zip
Add PSUBSUB/PSUBUSW instr
0F D8 /r PSUBUSB mm, mm/m64
66 0F D8 /r PSUBUSB xmm1, xmm2/m128
Diffstat (limited to 'miasm2/arch/x86/arch.py')
-rw-r--r--miasm2/arch/x86/arch.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py
index 98e29b63..f4ef7349 100644
--- a/miasm2/arch/x86/arch.py
+++ b/miasm2/arch/x86/arch.py
@@ -4477,6 +4477,15 @@ addop("pmullw", [bs8(0x0f), bs8(0xd5), no_xmm_pref] +
 addop("pmullw", [bs8(0x0f), bs8(0xd5), pref_66] +
       rmmod(xmm_reg, rm_arg_xmm_m128))
 
+addop("psubusb", [bs8(0x0f), bs8(0xd8), no_xmm_pref] +
+      rmmod(mm_reg, rm_arg_mm_m64))
+addop("psubusb", [bs8(0x0f), bs8(0xd8), pref_66] +
+      rmmod(xmm_reg, rm_arg_xmm_m128))
+addop("psubusw", [bs8(0x0f), bs8(0xd9), no_xmm_pref] +
+      rmmod(mm_reg, rm_arg_mm_m64))
+addop("psubusw", [bs8(0x0f), bs8(0xd9), pref_66] +
+      rmmod(xmm_reg, rm_arg_xmm_m128))
+
 
 mn_x86.bintree = factor_one_bit(mn_x86.bintree)
 # mn_x86.bintree = factor_fields_all(mn_x86.bintree)