From beccdec482bfc03d6bbbf413d2a7604183eb8f86 Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 21 Oct 2019 00:40:46 -0700 Subject: doubly love speculation --- src/lib.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c855baa..51eb232 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2536,11 +2536,11 @@ pub fn read_operands>(mut bytes_iter: T, instruction: &mut mem_oper = read_E(&mut bytes_iter, instruction, modrm, opwidth)?; } - if operand_code == OperandCode::Gv_Ev { + if operand_code == OperandCode::Gv_Ev || operand_code == OperandCode::Gb_Eb { instruction.operands[1] = mem_oper; instruction.operands[0] = OperandSpec::RegRRR; instruction.operand_count = 2; - } else if operand_code == OperandCode::Ev_Gv { + } else if operand_code == OperandCode::Ev_Gv || operand_code == OperandCode::Eb_Gb { instruction.operands[0] = mem_oper; instruction.operands[1] = OperandSpec::RegRRR; instruction.operand_count = 2; @@ -2550,14 +2550,6 @@ pub fn read_operands>(mut bytes_iter: T, instruction: &mut read_imm_signed(&mut bytes_iter, 1)? as u64; instruction.operands[0] = OperandSpec::ImmI8; instruction.operand_count = 1; - } else if operand_code == OperandCode::Gb_Eb { - instruction.operands[1] = mem_oper; - instruction.operands[0] = OperandSpec::RegRRR; - instruction.operand_count = 2; - } else if operand_code == OperandCode::Eb_Gb { - instruction.operands[0] = mem_oper; - instruction.operands[1] = OperandSpec::RegRRR; - instruction.operand_count = 2; } else { match operand_code { /* -- cgit v1.1