diff lwasm/insn_gen.c @ 163:2e6a1e914104

Added ability to use * as a direct page indicator
author lost
date Sat, 31 Jan 2009 16:15:05 +0000
parents 427e268e876b
children 048ebb85f6ef
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)++;