diff options
author | iximeow <me@iximeow.net> | 2021-06-27 10:38:57 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-06-27 10:39:20 -0700 |
commit | bc16a5069bc53aec217e8f3a8a269c0e53b7eed7 (patch) | |
tree | 864e5ed26d0b5954a613a0cd3fead07ee430eb4d /src/long_mode/display.rs | |
parent | b468b923e7a8bd25a97e11e511fb4902341d7634 (diff) |
remove support for nonexistent prefixes
Diffstat (limited to 'src/long_mode/display.rs')
-rw-r--r-- | src/long_mode/display.rs | 7 |
1 files changed, 0 insertions, 7 deletions
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<T: fmt::Write, Y: YaxColors>(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<T: fmt::Write, Y: YaxColors>(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 <T: fmt::Write, Y: YaxColors> ShowContextual<u64, [Option<alloc::string::St // only a few of you actually use the prefix... if self.prefixes.rep() { write!(out, "rep ")?; - } else if self.prefixes.repz() { - write!(out, "repz ")?; } else if self.prefixes.repnz() { write!(out, "repnz ")?; } |