From ab5fed3cfa60e27a36d9f64c7e4f3b396ef2e28f Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Fri, 23 Oct 2020 21:45:56 +0100 Subject: [PATCH] Fixed conditional parsing bug, npos and nneg options wrong way round --- crsn/src/asm/instr/cond.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crsn/src/asm/instr/cond.rs b/crsn/src/asm/instr/cond.rs index 5b72068..9c61654 100644 --- a/crsn/src/asm/instr/cond.rs +++ b/crsn/src/asm/instr/cond.rs @@ -124,8 +124,8 @@ pub fn parse_cond(text: &str, pos: &SourcePosition) -> Result { "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,