diff src/instab.h @ 25:3b818f05dc2a

imported instruction table from older version to development version
author lost
date Fri, 02 Jan 2009 02:03:48 +0000
parents 05d4115b4860
children f736579569b4
line wrap: on
line diff
--- a/src/instab.h	Fri Jan 02 01:33:07 2009 +0000
+++ b/src/instab.h	Fri Jan 02 02:03:48 2009 +0000
@@ -21,14 +21,20 @@
 Contains definitions for the instruction table
 */
 
+#ifndef __instab_h_seen__
+#define __instab_h_seen__
+
+#include "lwasm.h"
+
 typedef struct
 {
 	char *opcode;				/* the mneumonic */
 	int ops[4];					/* opcode values for up to four addr modes */
-	void (*p1fn)(asmstate_t *as, sourceline_t *cl, char **optr);
-	void (*p2fn)(asmstate_t *as, sourceline_t *cl, char **optr);
+	void (*fn)(asmstate_t *as, lwasm_line_t *cl, char **optr);
 } instab_t;
 
+#define OPFUNC(fn)	void (fn)(asmstate_t *as, lwasm_line_t *l, char **p)
+
 #ifndef __instab_c_seen__
 extern instab_t instab[];
 #endif //__instab_c_seen__