From c22532de02b9b050c6a6f5a995a33516201d69b1 Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 3 Aug 2020 21:46:30 -0700 Subject: cmc and int1 --- src/long_mode/display.rs | 2 ++ src/long_mode/mod.rs | 15 ++++++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) (limited to 'src/long_mode') diff --git a/src/long_mode/display.rs b/src/long_mode/display.rs index e2943d3..a4a4d79 100644 --- a/src/long_mode/display.rs +++ b/src/long_mode/display.rs @@ -497,6 +497,7 @@ const MNEMONICS: &[&'static str] = &[ "ltr", "verr", "verw", + "cmc", "clc", "stc", "cli", @@ -1888,6 +1889,7 @@ impl > Colorize>(decoder: &InstDecoder, mut bytes_iter instruction.operand_count = 0; return Ok(()); }, + OperandCode::I_1 => { + instruction.imm = 1; + instruction.operands[0] = OperandSpec::ImmU8; + instruction.operand_count = 1; + } OperandCode::Unsupported => { return Err(DecodeError::IncompleteDecoder); } -- cgit v1.1