Browse Source

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

master
Nat Lasseter 2 years ago
parent
commit
ab5fed3cfa
  1. 4
      crsn/src/asm/instr/cond.rs

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,
"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,

Loading…
Cancel
Save