Fixed conditional parsing bug, npos and nneg options wrong way round

This commit is contained in:
Nat Lasseter
2020-10-23 21:45:56 +01:00
parent 2800b8cab2
commit ab5fed3cfa
+2 -2
View File
@@ -124,8 +124,8 @@ pub fn parse_cond(text: &str, pos: &SourcePosition) -> Result<Cond, CrsnError> {
"ge" | ">=" | "" => Cond::GreaterOrEqual,
"pos" | "+" | ">0" => Cond::Positive,
"neg" | "-" | "<0" => Cond::Negative,
"npos" | "0-" | "<=0" | "0" => Cond::NonPositive,
"nneg" | "0+" | ">=0" | "0" => Cond::NonNegative,
"npos" | "0-" | "<=0" | "0" => Cond::NonPositive,
"nneg" | "0+" | ">=0" | "0" => Cond::NonNegative,
"c" => Cond::Carry,
"nc" => Cond::NotCarry,
"em" | "empty" => Cond::Empty,