From 39aaebeb48c30b96b4ff8b66663a1452e2571426 Mon Sep 17 00:00:00 2001 From: iximeow Date: Tue, 27 Oct 2020 00:57:33 -0700 Subject: fix misdecode of instructions in opcode 0x80 --- src/protected_mode/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/protected_mode') diff --git a/src/protected_mode/mod.rs b/src/protected_mode/mod.rs index 29c2750..b60ff34 100644 --- a/src/protected_mode/mod.rs +++ b/src/protected_mode/mod.rs @@ -6023,6 +6023,7 @@ fn read_operands>(decoder: &InstDecoder, mut bytes_iter: T, instruction.operand_count = 1; }, 1 => { + instruction.opcode = base_opcode_map((modrm >> 3) & 7); instruction.operands[0] = mem_oper; instruction.operands[1] = OperandSpec::ImmI8; instruction.operand_count = 2; -- cgit v1.1