diff src/instab.c @ 57:035b95a3690f

Added conditional assembly and macros
author lost
date Mon, 05 Jan 2009 00:01:21 +0000
parents 55260a178667
children d85ba47b1e8f
line wrap: on
line diff
--- a/src/instab.c	Sun Jan 04 21:43:05 2009 +0000
+++ b/src/instab.c	Mon Jan 05 00:01:21 2009 +0000
@@ -59,6 +59,16 @@
 extern OPFUNC(pseudo_fcb);
 extern OPFUNC(pseudo_fdb);
 extern OPFUNC(pseudo_fqb);
+extern OPFUNC(pseudo_ifne);
+extern OPFUNC(pseudo_ifeq);
+extern OPFUNC(pseudo_ifgt);
+extern OPFUNC(pseudo_ifge);
+extern OPFUNC(pseudo_iflt);
+extern OPFUNC(pseudo_ifle);
+extern OPFUNC(pseudo_else);
+extern OPFUNC(pseudo_endc);
+extern OPFUNC(pseudo_macro);
+extern OPFUNC(pseudo_endm);
 
 instab_t instab[] =
 {
@@ -331,6 +341,19 @@
 
 	{ "error",	{ -1, -1, -1, -1},	pseudo_error },
 
+	{ "ifeq",	{ -1, -1, -1, -1}, 	pseudo_ifeq, 1 },
+	{ "ifne",	{ -1, -1, -1, -1}, 	pseudo_ifne, 1 },
+	{ "if",		{ -1, -1, -1, -1}, 	pseudo_ifne, 1 },
+	{ "ifgt",	{ -1, -1, -1, -1}, 	pseudo_ifgt, 1 },
+	{ "ifge",	{ -1, -1, -1, -1}, 	pseudo_ifge, 1 },
+	{ "iflt",	{ -1, -1, -1, -1}, 	pseudo_iflt, 1 },
+	{ "ifle",	{ -1, -1, -1, -1}, 	pseudo_ifle, 1 },
+	{ "endc",	{ -1, -1, -1, -1}, 	pseudo_endc, 1 },
+	{ "else",	{ -1, -1, -1, -1}, 	pseudo_else, 1 },
+
+	{ "macro",	{ -1, -1, -1, -1}, 	pseudo_macro,	1,	0 },
+	{ "endm",	{ -1, -1, -1, -1},	pseudo_endm,	1,	1 },	
+
 	/* flag end of table */	
 	{ NULL,		{ -0x1, -0x1, -0x1, -0x1 }, insn_inh }
 };