comparison 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
comparison
equal deleted inserted replaced
24:98dcaa0dc396 25:3b818f05dc2a
19 19
20 20
21 Contains definitions for the instruction table 21 Contains definitions for the instruction table
22 */ 22 */
23 23
24 #ifndef __instab_h_seen__
25 #define __instab_h_seen__
26
27 #include "lwasm.h"
28
24 typedef struct 29 typedef struct
25 { 30 {
26 char *opcode; /* the mneumonic */ 31 char *opcode; /* the mneumonic */
27 int ops[4]; /* opcode values for up to four addr modes */ 32 int ops[4]; /* opcode values for up to four addr modes */
28 void (*p1fn)(asmstate_t *as, sourceline_t *cl, char **optr); 33 void (*fn)(asmstate_t *as, lwasm_line_t *cl, char **optr);
29 void (*p2fn)(asmstate_t *as, sourceline_t *cl, char **optr);
30 } instab_t; 34 } instab_t;
35
36 #define OPFUNC(fn) void (fn)(asmstate_t *as, lwasm_line_t *l, char **p)
31 37
32 #ifndef __instab_c_seen__ 38 #ifndef __instab_c_seen__
33 extern instab_t instab[]; 39 extern instab_t instab[];
34 #endif //__instab_c_seen__ 40 #endif //__instab_c_seen__
35 41