diff lwasm/insn_indexed.c @ 367:c6d2a1f54e0c

Change processor target variations to pragmas. Add "pragma 6809" and "pragma 6309" which select the processor target rather than a global flag. The command line switches set or reset the pragma appropriately. Thanks to Erik G <erik@6809.org> for the patch.
author William Astle <lost@l-w.ca>
date Mon, 15 Jun 2015 21:21:58 -0600
parents b7e4992c12e7
children 8764142b3192
line wrap: on
line diff
--- a/lwasm/insn_indexed.c	Tue Jun 02 20:58:14 2015 -0600
+++ b/lwasm/insn_indexed.c	Mon Jun 15 21:21:58 2015 -0600
@@ -99,7 +99,7 @@
 	const char *reglist;
 	lw_expr_t e;
 		
-	if (as -> target == TARGET_6809)
+	if (CURPRAGMA(l, PRAGMA_6809))
 	{
 		simples = simpleindex9;
 		reglist = regs9;