Fix cond parsing bug #23

Merged
MightyPork merged 1 commits from User_4574/crsn:master into master 4 years ago
  1. 4
      crsn/src/asm/instr/cond.rs

@ -124,8 +124,8 @@ pub fn parse_cond(text: &str, pos: &SourcePosition) -> Result<Cond, CrsnError> {
"ge" | ">=" | "≥" => Cond::GreaterOrEqual, "ge" | ">=" | "≥" => Cond::GreaterOrEqual,
"pos" | "+" | ">0" => Cond::Positive, "pos" | "+" | ">0" => Cond::Positive,
"neg" | "-" | "<0" => Cond::Negative, "neg" | "-" | "<0" => Cond::Negative,
"npos" | "0-" | "<=0" | "0" => Cond::NonPositive, "npos" | "0-" | "<=0" | "0" => Cond::NonPositive,
"nneg" | "0+" | ">=0" | "0" => Cond::NonNegative, "nneg" | "0+" | ">=0" | "0" => Cond::NonNegative,
"c" => Cond::Carry, "c" => Cond::Carry,
"nc" => Cond::NotCarry, "nc" => Cond::NotCarry,
"em" | "empty" => Cond::Empty, "em" | "empty" => Cond::Empty,

Loading…
Cancel
Save