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/protected_mode/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/protected_mode/mod.rs') diff --git a/src/protected_mode/mod.rs b/src/protected_mode/mod.rs index 3370aaa..2a32a91 100644 --- a/src/protected_mode/mod.rs +++ b/src/protected_mode/mod.rs @@ -505,7 +505,7 @@ pub enum Opcode { CBW, CWDE, CDQE, - CBD, + CWD, CDQ, CQO, LODS, @@ -5945,7 +5945,7 @@ fn unlikely_operands>(decoder: &InstDecoder, mut bytes_iter OperandCode::CVT_DA => { let opwidth = imm_width_from_prefixes(SizeCode::vd, instruction.prefixes); instruction.opcode = match opwidth { - 2 => { Opcode::CBD }, + 2 => { Opcode::CWD }, 4 => { Opcode::CDQ }, _ => { unreachable!("invalid operation width"); }, } -- cgit v1.1