Mercurial > hg-old > index.cgi
changeset 163:2e6a1e914104
Added ability to use * as a direct page indicator
author | lost |
---|---|
date | Sat, 31 Jan 2009 16:15:05 +0000 |
parents | 02ada556bcc0 |
children | 586069fb17a1 |
files | lwasm/insn_gen.c |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lwasm/insn_gen.c Sat Jan 31 07:03:09 2009 +0000 +++ b/lwasm/insn_gen.c Sat Jan 31 16:15:05 2009 +0000 @@ -57,6 +57,17 @@ (*optr)++; f8 = 1; } + // for compatibility with asxxxx + // * followed by a digit, alpha, or _, or ., or ?, or another * is "f8" + else if (**optr == '*') + { + tv = *(*optr + 1); + if (isdigit(tv) || isalpha(tv) || tv == '_' || tv == '.' || tv == '?' || tv == '@' || tv == '*' || tv == '+' || tv == '-') + { + f8 = 1; + (*optr)++; + } + } else if (**optr == '>') { (*optr)++;