diff options
author | iximeow <me@iximeow.net> | 2020-08-08 23:06:00 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-08-09 01:39:01 -0700 |
commit | f6fb6d2bac3c6e812b3bfbfb25d854e324801a20 (patch) | |
tree | f143dd7ef6749ed2612f92cb7198a360ca922767 /src/long_mode/mod.rs | |
parent | 7b82d7ef21fea44c44eff9524f2dd5f31b979fda (diff) |
bad idea
Diffstat (limited to 'src/long_mode/mod.rs')
-rw-r--r-- | src/long_mode/mod.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index ea92211..3795999 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -6245,16 +6245,6 @@ fn read_operands<T: Iterator<Item=u8>>(decoder: &InstDecoder, mut bytes_iter: T, instruction.operand_count = 0; return Ok(()); }, - _ => { - unlikely_operands(decoder, bytes_iter, instruction, operand_code, mem_oper, length)?; - } - }; - } - - Ok(()) -} -fn unlikely_operands<T: Iterator<Item=u8>>(decoder: &InstDecoder, mut bytes_iter: T, instruction: &mut Instruction, operand_code: OperandCode, mem_oper: OperandSpec, length: &mut u8) -> Result<(), DecodeError> { - match operand_code { OperandCode::I_1 => { instruction.imm = 1; instruction.operands[0] = OperandSpec::ImmU8; @@ -7977,6 +7967,7 @@ fn unlikely_operands<T: Iterator<Item=u8>>(decoder: &InstDecoder, mut bytes_iter return Err(DecodeError::InvalidOperand); } }; + } Ok(()) } |