diff lwasm/insn_indexed.c @ 129:5706712f8a20

Allow [>...] for extended indirect
author lost@l-w.ca
date Thu, 11 Aug 2011 22:25:29 -0600
parents 6a919c3ca0e9
children 50d86baf4ea2
line wrap: on
line diff
--- a/lwasm/insn_indexed.c	Thu Aug 11 22:04:09 2011 -0600
+++ b/lwasm/insn_indexed.c	Thu Aug 11 22:25:29 2011 -0600
@@ -161,6 +161,9 @@
 	// if no "," and indirect, do extended indir
 	if (!rn && indir)
 	{
+		// eat the extended addressing indicator if present
+		if (**p == '>')
+			(*p)++;
 		// extended indir
 		l -> pb = 0x9f;
 		e = lwasm_parse_expr(as, p);