about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/arch.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-10-06 15:25:06 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-10-06 22:34:17 +0200
commit0b31f415cb226e2fbda150556a925eba2b49b9f8 (patch)
tree48fd8e2f89493ff612f75784ee80495b4b6b8c30 /miasm2/arch/x86/arch.py
parent369371ca24c5f4fd6670cb36b80fbd29650de7d0 (diff)
downloadmiasm-0b31f415cb226e2fbda150556a925eba2b49b9f8.tar.gz
miasm-0b31f415cb226e2fbda150556a925eba2b49b9f8.zip
X86: fix inc/dec 64bit
Diffstat (limited to '')
-rw-r--r--miasm2/arch/x86/arch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py
index e2c515d1..3b2117f4 100644
--- a/miasm2/arch/x86/arch.py
+++ b/miasm2/arch/x86/arch.py
@@ -3483,7 +3483,7 @@ addop("cqo", [bs8(0x99), bs_opmode64])
 addop("daa", [bs8(0x27)])
 addop("das", [bs8(0x2f)])
 addop("dec", [bs('1111111'), w8] + rmmod(d1, rm_arg_w8))
-addop("dec", [bs('01001'), reg])
+addop("dec", [bs('01001'), reg, bs_modeno64])
 addop("div", [bs('1111011'), w8] + rmmod(d6, rm_arg_w8))
 addop("enter", [bs8(0xc8), u16, u08])
 
@@ -3660,7 +3660,7 @@ addop("in", [bs("1110010"), w8, d_eax, u08])
 addop("in", [bs("1110110"), w8, d_eax, d_edx])
 
 addop("inc", [bs('1111111'), w8] + rmmod(d0, rm_arg_w8))
-addop("inc", [bs('01000'), reg])
+addop("inc", [bs('01000'), reg, bs_modeno64])
 
 addop("insb", [bs8(0x6c)])
 addop("insw", [bs8(0x6d), bs_opmode16])