From 3ec76933d5643d6186038093b1ade1e6f22f4a7a Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Thu, 24 Jul 2025 11:44:06 +0900 Subject: [PATCH] fix(interpreter): rep(n)z condition was wrong way around --- src/interpreter/interpreter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interpreter/interpreter.rs b/src/interpreter/interpreter.rs index 96620c9..fb4c594 100644 --- a/src/interpreter/interpreter.rs +++ b/src/interpreter/interpreter.rs @@ -889,8 +889,8 @@ impl Interpreter { /* * Repeat prefixes */ - Mnemonic::REPNZ(rep_op) => self.computer.repz(*rep_op, true)?, - Mnemonic::REPZ(rep_op) => self.computer.repz(*rep_op, false)?, + Mnemonic::REPNZ(rep_op) => self.computer.repz(*rep_op, false)?, + Mnemonic::REPZ(rep_op) => self.computer.repz(*rep_op, true)?, /* * Adjust