diff lwasm/insn_gen.c @ 380:17fcd0c3ee45

Allow multibyte ascii constants in m80ext mode Allow multibyte ascii constants using ' in m80ext mode, with the allowed size depending on the actual size of the register being referenced. Thanks to Erik G <erik@6809.org> for the patch.
author William Astle <lost@l-w.ca>
date Mon, 13 Jul 2015 21:04:39 -0600
parents 35d4213e6657
children 2d9b7ae6c329
line wrap: on
line diff
--- a/lwasm/insn_gen.c	Mon Jul 13 20:59:02 2015 -0600
+++ b/lwasm/insn_gen.c	Mon Jul 13 21:04:39 2015 -0600
@@ -320,6 +320,7 @@
 
 PARSEFUNC(insn_parse_gen8)
 {
+	l -> genmode = 8;
 	if (**p == '#')
 	{
 		lw_expr_t e;
@@ -393,6 +394,7 @@
 
 PARSEFUNC(insn_parse_gen16)
 {
+	l -> genmode = 16;
 	if (**p == '#')
 	{
 		lw_expr_t e;
@@ -454,6 +456,7 @@
 
 PARSEFUNC(insn_parse_gen32)
 {
+	l -> genmode = 32;
 	if (**p == '#')
 	{
 		lw_expr_t e;