# HG changeset patch # User William Astle # Date 1444972886 21600 # Node ID f6e03c2cebfb2adf70ccc423d0babbde2548fce6 # Parent f5a88f147faea0262aa47b8c558f75a93d495d0b Fix "rlist" to recognize comments as end of operand Fix "rlist" to recognize comments as the end of the operand instead of trying to parse a comment character as an additional register specification. diff -r f5a88f147fae -r f6e03c2cebfb lwasm/insn_rlist.c --- a/lwasm/insn_rlist.c Thu Oct 15 20:20:20 2015 -0600 +++ b/lwasm/insn_rlist.c Thu Oct 15 23:21:26 2015 -0600 @@ -33,7 +33,7 @@ int rn; static const char *regs = "CCA B DPX Y U PCD S "; - while (**p && !isspace(**p)) + while (**p && !isspace(**p) && **p != ';' && **p != '*') { rn = lwasm_lookupreg2(regs, p); if (rn < 0) @@ -42,7 +42,7 @@ return; } lwasm_skip_to_next_token(l, p); - if (**p && **p != ',' && !isspace(**p)) + if (**p && **p != ',' && !isspace(**p) && **p != ';' && **p != '*') { lwasm_register_error(as, l, E_OPERAND_BAD); }