From 7a45abbef5a1158e3ab676e666cbe69a2d57e36a Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 30 Mar 2019 20:02:20 -0700 Subject: fix incorrectly showing decode errors, add more system instructions --- src/display.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/display.rs') diff --git a/src/display.rs b/src/display.rs index 3a73225..b500992 100644 --- a/src/display.rs +++ b/src/display.rs @@ -174,6 +174,13 @@ impl Colorize for Operand { impl fmt::Display for Opcode { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self { + &Opcode::SLDT => write!(f, "{}", "sldt"), + &Opcode::STR => write!(f, "{}", "str"), + &Opcode::LLDT => write!(f, "{}", "lldt"), + &Opcode::LTR => write!(f, "{}", "ltr"), + &Opcode::VERR => write!(f, "{}", "verr"), + &Opcode::VERW => write!(f, "{}", "verw"), + &Opcode::JMPE => write!(f, "{}", "jmpe"), &Opcode::WRMSR => write!(f, "{}", "wrmsr"), &Opcode::RDMSR => write!(f, "{}", "rdmsr"), &Opcode::RDTSC => write!(f, "{}", "rdtsc"), @@ -470,6 +477,13 @@ impl Colorize for Opcode { Opcode::CLTS | Opcode::SYSCALL | Opcode::LSL | + Opcode::SLDT | + Opcode::STR | + Opcode::LLDT | + Opcode::LTR | + Opcode::VERR | + Opcode::VERW | + Opcode::JMPE | Opcode::LAR => { write!(out, "{}", colors.platform_op(self)) } Opcode::UD2 | -- cgit v1.1