aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-10-21 00:40:46 -0700
committeriximeow <me@iximeow.net>2020-01-12 16:10:13 -0800
commitbeccdec482bfc03d6bbbf413d2a7604183eb8f86 (patch)
tree221dbf5df6c3ae70435cc39ea750c4d2cbdd2203 /src
parent0ce86c7aac1c226e7c7805de6d69df51b7980063 (diff)
doubly love speculation
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs12
1 files 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<T: Iterator<Item=u8>>(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<T: Iterator<Item=u8>>(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 {
/*