diff lwasm/instab.c @ 132:4cf44ff89b08

Added DTS and DTB pseudo ops; initial attempt to allow ifdef SYM1|SYM2
author lost@l-w.ca
date Thu, 11 Aug 2011 23:50:16 -0600
parents 7b0716264251
children b62f5389b859
line wrap: on
line diff
--- a/lwasm/instab.c	Thu Aug 11 22:58:27 2011 -0600
+++ b/lwasm/instab.c	Thu Aug 11 23:50:16 2011 -0600
@@ -116,6 +116,14 @@
 #define pseudo_resolve_noop NULL
 #define pseudo_emit_noop NULL
 
+extern PARSEFUNC(pseudo_parse_dts);
+#define pseudo_resolve_dts NULL
+extern EMITFUNC(pseudo_emit_dts);
+
+extern PARSEFUNC(pseudo_parse_dtb);
+#define pseudo_resolve_dtb NULL
+extern EMITFUNC(pseudo_emit_dtb);
+
 extern PARSEFUNC(pseudo_parse_end);
 #define pseudo_resolve_end NULL
 extern EMITFUNC(pseudo_emit_end);
@@ -688,6 +696,10 @@
 	// for compatibility
 	{ ".end", 		{	-1, 	-1, 	-1, 	-1 },	pseudo_parse_end,		pseudo_resolve_end,				pseudo_emit_end,			lwasm_insn_normal},
 
+	// date and time stamps
+	{ "dts",		{	-1,		-1,		-1,		-1 },	pseudo_parse_dts,		pseudo_resolve_dts,				pseudo_emit_dts,			lwasm_insn_normal},
+	{ "dtb",		{	-1,		-1,		-1,		-1 },	pseudo_parse_dtb,		pseudo_resolve_dtb,				pseudo_emit_dtb,			lwasm_insn_normal},
+
 	// extra ops that are ignored because they are generally only for
 	// pretty printing the listing
 	{ "nam",		{	-1, 	-1, 	-1, 	-1 },	pseudo_parse_noop,		pseudo_resolve_noop,			pseudo_emit_noop,			lwasm_insn_normal},