From bc16a5069bc53aec217e8f3a8a269c0e53b7eed7 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 27 Jun 2021 10:38:57 -0700 Subject: remove support for nonexistent prefixes --- src/long_mode/display.rs | 7 ------- src/long_mode/mod.rs | 4 ---- 2 files changed, 11 deletions(-) (limited to 'src') diff --git a/src/long_mode/display.rs b/src/long_mode/display.rs index f235c6a..7532101 100644 --- a/src/long_mode/display.rs +++ b/src/long_mode/display.rs @@ -3323,11 +3323,8 @@ fn contextualize_intel(instr: &Instruction, colors: if instr.prefixes.rep_any() { if [Opcode::MOVS, Opcode::CMPS, Opcode::LODS, Opcode::STOS, Opcode::INS, Opcode::OUTS].contains(&instr.opcode) { - // only a few of you actually use the prefix... if instr.prefixes.rep() { write!(out, "rep ")?; - } else if instr.prefixes.repz() { - write!(out, "repz ")?; } else if instr.prefixes.repnz() { write!(out, "repnz ")?; } @@ -3444,8 +3441,6 @@ fn contextualize_c(instr: &Instruction, _colors: &Y // only a few of you actually use the prefix... if instr.prefixes.rep() { out.write_str("rep ")?; - } else if instr.prefixes.repz() { - out.write_str("repz ")?; } else if instr.prefixes.repnz() { out.write_str("repnz ")?; } // TODO: other rep kinds? @@ -3670,8 +3665,6 @@ impl ShowContextual bool { self.bits & 0x30 == 0x20 } - #[inline] - fn set_repz(&mut self) { self.bits = (self.bits & 0xcf) | 0x20; } - #[inline] pub fn repnz(&self) -> bool { self.bits & 0x30 == 0x30 } #[inline] fn set_repnz(&mut self) { self.bits = (self.bits & 0xcf) | 0x30; } -- cgit v1.1