diff options
author | iximeow <me@iximeow.net> | 2020-01-12 15:03:38 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-01-12 16:10:14 -0800 |
commit | bb8afc99d183d2f284a30c069f3725b5c8c668ba (patch) | |
tree | 3c4a846d673055acabc08b9c3f1e5698b9a7eefc /src/vex.rs | |
parent | 825eabe868163189d371901ecfe27b4a3d0c9e97 (diff) |
no println when decoding vex instructions please
Diffstat (limited to 'src/vex.rs')
-rw-r--r-- | src/vex.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -98,7 +98,7 @@ pub(crate) fn three_byte_vex<T: Iterator<Item=u8>>(bytes: &mut T, instruction: & _ => { unreachable!("p is two bits"); } }; let m = vex_byte_one & 0b11111; - println!("m: {:05b}", m); +// println!("m: {:05b}", m); let m = match m { 0b00001 => VEXOpcodeMap::Map0F, 0b00010 => VEXOpcodeMap::Map0F38, @@ -141,7 +141,7 @@ pub(crate) fn two_byte_vex<T: Iterator<Item=u8>>(bytes: &mut T, instruction: &mu } fn read_vex_operands<T: Iterator<Item=u8>>(bytes: &mut T, instruction: &mut Instruction, length: &mut u8, operand_code: VEXOperandCode) -> Result<(), DecodeError> { - println!("operand code: {:?}", operand_code); +// println!("operand code: {:?}", operand_code); match operand_code { VEXOperandCode::VPS_71 => { let modrm = read_modrm(bytes, length)?; @@ -558,8 +558,8 @@ fn read_vex_instruction<T: Iterator<Item=u8>>(opcode_map: VEXOpcodeMap, bytes: & #[allow(non_snake_case)] let L = instruction.prefixes.vex().l(); - println!("reading vex instruction from opcode prefix {:?}, L: {}, opc: {:#x}, map:{:?}", p, L, opc, opcode_map); - println!("w? {}", instruction.prefixes.vex().w()); +// println!("reading vex instruction from opcode prefix {:?}, L: {}, opc: {:#x}, map:{:?}", p, L, opc, opcode_map); +// println!("w? {}", instruction.prefixes.vex().w()); // several combinations simply have no instructions. check for those first. let (opcode, operand_code) = match opcode_map { |