From f2de087952ce4bc10ba18ad6bbb5d34ff01d2921 Mon Sep 17 00:00:00 2001 From: iximeow Date: Wed, 15 Jan 2020 23:51:17 -0800 Subject: support "int imm8" instructions --- src/long_mode/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/long_mode') diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index 1468a9c..be2dbeb 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -5753,6 +5753,12 @@ fn unlikely_operands>(decoder: &InstDecoder, mut bytes_iter _ => { unreachable!("invalid operation width"); }, } } + OperandCode::Ib => { + instruction.imm = + read_imm_unsigned(&mut bytes_iter, 1, length)?; + instruction.operands[0] = OperandSpec::ImmU8; + instruction.operand_count = 1; + } OperandCode::Iw => { instruction.imm = read_imm_unsigned(&mut bytes_iter, 2, length)?; -- cgit v1.1