changeset 129:5706712f8a20

Allow [>...] for extended indirect
author lost@l-w.ca
date Thu, 11 Aug 2011 22:25:29 -0600
parents 3a5f718b24c1
children 50d86baf4ea2
files lwasm/insn_indexed.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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);