summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2023-07-29 13:24:03 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2023-08-02 01:08:29 +0100
commit472b37fbf06e3588ff8ec9496aef44758ebf1bc3 (patch)
tree39dc5411507cb967de6a6ee4b99d60e5670a1826 /src
parent1e310fa30a1bca4448f47116f5d05037cc2ada1a (diff)
Fix another x86 case and add regression tests
Diffstat (limited to 'src')
-rw-r--r--src/x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x86.c b/src/x86.c
index dc3610e..7a5d00e 100644
--- a/src/x86.c
+++ b/src/x86.c
@@ -74,7 +74,7 @@ P: X86_SEG_PREFIXES(CASES)
case X86_CRAZY8: operandlen = 1;
case X86_CRAZYW:
if ((insn[1] & 0x38) >= 0x10) operandlen = 0;
- return pfxlen + 2 + operandlen + mrmsib(insn + 1, addrlen);
+ return pfxlen + 1 + operandlen + mrmsib(insn + 1, addrlen);
case X86_2BYTE: ++insn; goto b2;
}
return -1;