Mercurial > hg-old > index.cgi
diff lwasm/parse.c @ 236:a58f49a77441
Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
author | lost |
---|---|
date | Fri, 14 Aug 2009 03:22:26 +0000 |
parents | 0df2a39a268c |
children | c8bcc396ec59 3010e24bb9c5 |
line wrap: on
line diff
--- a/lwasm/parse.c Fri Jun 12 05:25:41 2009 +0000 +++ b/lwasm/parse.c Fri Aug 14 03:22:26 2009 +0000 @@ -47,6 +47,7 @@ p = l -> text; l -> sect = as -> csect; + l -> inmod = as -> inmod; // blank lines are a no brainer if (!*p) @@ -186,8 +187,8 @@ (instab[opnum].fn)(as, l, &p2, opnum); // if we didn't end on a "space" character or EOL, throw error - if (*p2 && !isspace(*p2) && !(l -> err)) - register_error(as, l, 1, "Bad operand"); + if (*p2 && !isspace(*p2) && !(l -> err) && as -> passnum == 1) + register_error(as, l, 1, "Bad operand: %s (%d)", p2, as -> passnum); } else {