Mercurial > hg > index.cgi
comparison 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 |
comparison
equal
deleted
inserted
replaced
366:433dbc18fb41 | 367:c6d2a1f54e0c |
---|---|
97 int f0 = 1; | 97 int f0 = 1; |
98 const struct opvals *simples; | 98 const struct opvals *simples; |
99 const char *reglist; | 99 const char *reglist; |
100 lw_expr_t e; | 100 lw_expr_t e; |
101 | 101 |
102 if (as -> target == TARGET_6809) | 102 if (CURPRAGMA(l, PRAGMA_6809)) |
103 { | 103 { |
104 simples = simpleindex9; | 104 simples = simpleindex9; |
105 reglist = regs9; | 105 reglist = regs9; |
106 } | 106 } |
107 else | 107 else |