Skip to content

Commit c6a8297

Browse files
committed
Fix comments on Sign flag state in InstructionType::fmt()
1 parent 97a17f3 commit c6a8297

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/instruction.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,12 @@ impl fmt::Display for InstructionType {
222222
Call(Some(cond)) | Jp(Some(cond)) | Jr(Some(cond)) | Ret(Some(cond)) => match cond {
223223
Condition::FlagSet(flag) => match flag {
224224
Flag::PV => write!(f, " PE"), // Parity Even
225-
Flag::S => write!(f, " M"), // Sign Positive
225+
Flag::S => write!(f, " M"), // Sign Negative (Minus)
226226
_ => write!(f, " {}", flag),
227227
},
228228
Condition::FlagNotSet(flag) => match flag {
229229
Flag::PV => write!(f, " PO"), // Parity Odd
230-
Flag::S => write!(f, " P"), // Sign Negative
230+
Flag::S => write!(f, " P"), // Sign Positive (Plus)
231231
_ => write!(f, " N{}", flag),
232232
},
233233
_ => Ok(()),

0 commit comments

Comments
 (0)