From e1d24121e8981e04c4b23a8a9b18693698eb4950 Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 14 Sep 2002 20:56:37 +0000 Subject: [PATCH] The .IFNBLANK command was broken git-svn-id: svn://svn.cc65.org/cc65/trunk@1391 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ca65/condasm.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ca65/condasm.c b/src/ca65/condasm.c index 1f6f96cb3..2377ccb1f 100644 --- a/src/ca65/condasm.c +++ b/src/ca65/condasm.c @@ -313,7 +313,12 @@ void DoConditionals (void) D = AllocIf (".IFNBLANK", 1); NextTok (); if (IfCond) { - SetIfCond (D, Tok != TOK_SEP); + if (Tok == TOK_SEP) { + SetIfCond (D, 0); + } else { + SetIfCond (D, 1); + SkipUntilSep (); + } } IfCond = GetCurrentIfCond (); break; -- 2.39.5