Skip to content

Commit

Permalink
Merge pull request cea-sec#1101 from serpilliere/add_x86_instr
Browse files Browse the repository at this point in the history
X86: add instr
  • Loading branch information
serpilliere authored Nov 22, 2019
2 parents ee9b0ec + 59bde86 commit 7ae7576
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions miasm/arch/x86/arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -3795,6 +3795,8 @@ class ia32_aaa(mn_x86):
addop("movmskpd", [bs8(0x0f), bs8(0x50), pref_66] +
rmmod(reg_modrm, rm_arg_xmm_reg))

addop("movnti", [bs8(0x0f), bs8(0xc3)] + rmmod(rmreg), [rm_arg, rmreg])

addop("addss", [bs8(0x0f), bs8(0x58), pref_f3] + rmmod(xmm_reg, rm_arg_xmm_m32))
addop("addsd", [bs8(0x0f), bs8(0x58), pref_f2] + rmmod(xmm_reg, rm_arg_xmm_m64))

Expand Down
4 changes: 4 additions & 0 deletions test/arch/x86/arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1538,6 +1538,10 @@ def h2i(s):
(m64, "00000000 MOVSXD R8, EAX",
"4c63c0"),

(m32, "XXXXXXXX MOVNTI DWORD PTR [ECX + 0xFFFFFFFC], EDX",
"0fc351fc"),
(m64, "XXXXXXXX MOVNTI QWORD PTR [RCX + 0xFFFFFFFFFFFFFFFC], R10",
"4C0FC351FC"),

(m32, "00000000 MUL BYTE PTR [EAX]",
"f620"),
Expand Down

0 comments on commit 7ae7576

Please sign in to comment.