From c9df7910c914d04644aee660d48de1245467f384 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 3 May 2020 13:52:39 -0700 Subject: that instruction is cwd, not cbd --- src/long_mode/display.rs | 4 ++-- src/long_mode/mod.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/long_mode') diff --git a/src/long_mode/display.rs b/src/long_mode/display.rs index 3025c16..49d1600 100644 --- a/src/long_mode/display.rs +++ b/src/long_mode/display.rs @@ -643,7 +643,7 @@ impl fmt::Display for Opcode { &Opcode::CBW => write!(f, "cbw"), &Opcode::CWDE => write!(f, "cwde"), &Opcode::CDQE => write!(f, "cdqe"), - &Opcode::CBD => write!(f, "cbd"), + &Opcode::CWD => write!(f, "cwd"), &Opcode::CDQ => write!(f, "cdq"), &Opcode::CQO => write!(f, "cqo"), &Opcode::ANDN => write!(f, "andn"), @@ -1665,7 +1665,7 @@ impl > Colorize>(decoder: &InstDecoder, mut bytes_iter OperandCode::CVT_DA => { let opwidth = imm_width_from_prefixes_64(SizeCode::vqp, instruction.prefixes); instruction.opcode = match opwidth { - 2 => { Opcode::CBD }, + 2 => { Opcode::CWD }, 4 => { Opcode::CDQ }, 8 => { Opcode::CQO }, _ => { unreachable!("invalid operation width"); }, -- cgit v1.1