changeset 355:981e34165e97

Added os9 directives to instruction table
author lost@starbug
date Tue, 30 Mar 2010 23:12:41 -0600
parents 60568b123281
children 7166254491ed
files lwasm/instab.c
diffstat 1 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/instab.c	Tue Mar 30 23:10:01 2010 -0600
+++ b/lwasm/instab.c	Tue Mar 30 23:12:41 2010 -0600
@@ -181,6 +181,19 @@
 #define pseudo_resolve_error NULL
 #define pseudo_emit_error NULL
 
+extern PARSEFUNC(pseudo_parse_os9);
+#define pseudo_resolve_os9 NULL
+extern EMITFUNC(pseudo_emit_os9);
+
+extern PARSEFUNC(pseudo_parse_mod);
+#define pseudo_resolve_mod NULL
+extern EMITFUNC(pseudo_emit_mod);
+
+extern PARSEFUNC(pseudo_parse_emod);
+#define pseudo_resolve_emod NULL
+extern EMITFUNC(pseudo_emit_emod);
+
+
 instab_t instab[] =
 {
 /*
@@ -510,13 +523,13 @@
 	{ "pragma",		{	-1, 	-1, 	-1, 	-1},	pseudo_parse_pragma,	pseudo_resolve_pragma,			pseudo_emit_pragma,			lwasm_insn_normal},
 	{ "*pragma",	{	-1, 	-1, 	-1, 	-1},	pseudo_parse_starpragma,pseudo_resolve_starpragma,		pseudo_emit_starpragma,		lwasm_insn_normal},
 	
-/*	// for os9 target
+	// for os9 target
 	{ "os9",		{	-1, 	-1, 	-1, 	-1 },	pseudo_parse_os9,		pseudo_resolve_os9,				pseudo_emit_os9,			lwasm_insn_normal},
 	{ "mod",		{	-1, 	-1, 	-1, 	-1 },	pseudo_parse_mod,		pseudo_resolve_mod,				pseudo_emit_mod,			lwasm_insn_normal},
 	{ "emod",		{	-1, 	-1, 	-1, 	-1 },	pseudo_parse_emod,		pseudo_resolve_emod,			pseudo_emit_emod,			lwasm_insn_normal},
 
 	// for compatibility with gcc6809 output...
-
+/*
 	{ ".area",		{	-1, 	-1, 	-1, 	-1},	pseudo_parse_section,	pseudo_resolve_section,			pseudo_emit_section,		lwasm_insn_normal},
 	{ ".globl",		{	-1, 	-1, 	-1, 	-1}, 	pseudo_parse_export,	pseudo_resolve_export,			pseudo_emit_export,			lwasm_insn_normal},
 */