summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/processor.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/arch/x86/processor.c b/src/arch/x86/processor.c
index b4ee334..ac6fb8e 100644
--- a/src/arch/x86/processor.c
+++ b/src/arch/x86/processor.c
@@ -181,7 +181,11 @@ static GArchInstruction *g_x86_processor_decode_instruction(const GX86Processor
id = x86_guess_next_instruction(data, *pos, len, &prefix, &care);
- if (prefix & XPX_TWO_BYTES) (*pos)++;
+ if (prefix & XPX_TWO_BYTES)
+ {
+ (*pos)++;
+ addr++;
+ }
if (prefix & XPX_OPERAND_SIZE_OVERRIDE) (*pos)++;
if (id != XOP_COUNT && !care) (*pos)++;