aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-06-23 10:48:30 -0700
committeriximeow <me@iximeow.net>2024-06-23 10:48:30 -0700
commitdf67ba2b415d9157e4b56723c0b92695a4124ea0 (patch)
treefa642e28ae7765a6ac94c258df9e5d78d7b0da80 /src
parent42f9eed1f20ffa33ca72c18e6600d03483c5bc77 (diff)
actually use new can_rep in 32b and 16b modes
Diffstat (limited to 'src')
-rw-r--r--src/protected_mode/display.rs2
-rw-r--r--src/real_mode/display.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/protected_mode/display.rs b/src/protected_mode/display.rs
index ed5d902..9cc949d 100644
--- a/src/protected_mode/display.rs
+++ b/src/protected_mode/display.rs
@@ -3376,7 +3376,7 @@ 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) {
+ if instr.opcode.can_rep() {
if instr.prefixes.rep() {
write!(out, "rep ")?;
} else if instr.prefixes.repnz() {
diff --git a/src/real_mode/display.rs b/src/real_mode/display.rs
index 9332011..b06e3d2 100644
--- a/src/real_mode/display.rs
+++ b/src/real_mode/display.rs
@@ -3376,7 +3376,7 @@ 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) {
+ if instr.opcode.can_rep() {
if instr.prefixes.rep() {
write!(out, "rep ")?;
} else if instr.prefixes.repnz() {