mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 04:24:37 +03:00
Fixed 'enter x, y' bug
This commit is contained in:
@@ -1132,8 +1132,10 @@ CaseX86M_GPB_MulDiv:
|
|||||||
|
|
||||||
case X86Inst::kEncodingX86Enter:
|
case X86Inst::kEncodingX86Enter:
|
||||||
if (isign3 == ENC_OPS2(Imm, Imm)) {
|
if (isign3 == ENC_OPS2(Imm, Imm)) {
|
||||||
imVal = (static_cast<uint32_t>(static_cast<const Imm&>(o1).getUInt16()) << 0) |
|
uint32_t iw = static_cast<const Imm&>(o0).getUInt16();
|
||||||
(static_cast<uint32_t>(static_cast<const Imm&>(o0).getUInt8()) << 16) ;
|
uint32_t ib = static_cast<const Imm&>(o1).getUInt8();
|
||||||
|
|
||||||
|
imVal = iw | (ib << 16);
|
||||||
imLen = 3;
|
imLen = 3;
|
||||||
goto EmitX86Op;
|
goto EmitX86Op;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user