diff lwasm/instab.c @ 158:f0527dc3804d

Added support for .globl <sym>, .area <section>, .word, .byte, .blkb, and a .module directive that does nothing
author lost
date Sat, 31 Jan 2009 05:30:06 +0000
parents 427e268e876b
children b061350c17e4
line wrap: on
line diff
--- a/lwasm/instab.c	Sat Jan 31 05:29:15 2009 +0000
+++ b/lwasm/instab.c	Sat Jan 31 05:30:06 2009 +0000
@@ -79,6 +79,7 @@
 extern OPFUNC(pseudo_export);
 extern OPFUNC(pseudo_ifdef);
 extern OPFUNC(pseudo_ifndef);
+extern OPFUNC(pseudo_noop);
 
 instab_t instab[] =
 {
@@ -382,7 +383,19 @@
 	
 	{ "pragma",	{ -1, -1, -1, -1},	pseudo_pragma },
 	{ "*pragma",	{ -1, -1, -1, -1},	pseudo_starpragma },
+
+	/* for compatibility with gcc6809 output... */
+	{ ".area",	{ -1, -1, -1, -1},	pseudo_section },
+	{ ".globl",	{ -1, -1, -1, -1}, 	pseudo_export },
+	{ ".module",	{ -1, -1, -1, -1},	pseudo_noop },
 	
+	{ ".word",	{ -1, -1, -1, -1},	pseudo_fdb },
+	{ ".byte",	{ -1, -1, -1, -1},	pseudo_fcb },
+	
+	{ ".blkb",	{ -1, -1, -1, -1},	pseudo_rmb },
+
+// needs to handle C escapes maybe?
+//	{ ".ascii",	{ -1, -1, -1, -1},	pseudo_ascii },
 
 	/* flag end of table */	
 	{ NULL,		{ -0x1, -0x1, -0x1, -0x1 }, insn_inh }