Fix handling of 66h prefix on jumps

It turns out that in x86-64 mode, address and operand size overrides are
ignored by the processor. (Tested that on a real machine.)

Even libopcodes gets this wrong...
This commit is contained in:
Alexis Engelke
2019-01-14 19:53:46 +01:00
parent a799024066
commit 20f6e8c073
3 changed files with 15 additions and 1 deletions

4
tests/decode-jmp.txt Normal file
View File

@@ -0,0 +1,4 @@
decode32 e900000000 [JMP imm4:0x1234005]
decode32 66e90100 [JMP imm2:0x4005]
decode64 e900000000 [JMP imm8:0x1234005]
decode64 66e900000000 [JMP imm8:0x1234006]