From bb8afc99d183d2f284a30c069f3725b5c8c668ba Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 12 Jan 2020 15:03:38 -0800 Subject: no println when decoding vex instructions please --- src/vex.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vex.rs b/src/vex.rs index cc024bd..99cee01 100644 --- a/src/vex.rs +++ b/src/vex.rs @@ -98,7 +98,7 @@ pub(crate) fn three_byte_vex>(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>(bytes: &mut T, instruction: &mu } fn read_vex_operands>(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>(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 { -- cgit v1.1