From 200447fed7f7fffa6c13360375b99b8d675b81ac Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 3 Aug 2020 00:57:45 -0700 Subject: more pop --- src/long_mode/mod.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index e79c8cb..4ef7a04 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -5982,6 +5982,17 @@ fn read_operands>(decoder: &InstDecoder, mut bytes_iter: T, ][r as usize]; instruction.operand_count = 1; } + OperandCode::ModRM_0x8f_Ev => { + instruction.operands[0] = mem_oper; + let r = (modrm >> 3) & 7; + if r >= 1 { + return Err(DecodeError::InvalidOpcode); + } + instruction.opcode = [ + Opcode::POP, + ][r as usize]; + instruction.operand_count = 1; + } OperandCode::ModRM_0xff_Ev => { instruction.operands[0] = mem_oper; let r = (modrm >> 3) & 7; -- cgit v1.1