Mercurial > hg-old > index.cgi
comparison src/instab.h @ 27:f736579569b4
Added handlers for inherent and register to register instructions
author | lost |
---|---|
date | Fri, 02 Jan 2009 02:56:04 +0000 |
parents | 3b818f05dc2a |
children | 035b95a3690f |
comparison
equal
deleted
inserted
replaced
26:d2e86babd958 | 27:f736579569b4 |
---|---|
28 | 28 |
29 typedef struct | 29 typedef struct |
30 { | 30 { |
31 char *opcode; /* the mneumonic */ | 31 char *opcode; /* the mneumonic */ |
32 int ops[4]; /* opcode values for up to four addr modes */ | 32 int ops[4]; /* opcode values for up to four addr modes */ |
33 void (*fn)(asmstate_t *as, lwasm_line_t *cl, char **optr); | 33 void (*fn)(asmstate_t *as, lwasm_line_t *l, char **optr, int opnum); |
34 } instab_t; | 34 } instab_t; |
35 | 35 |
36 #define OPFUNC(fn) void (fn)(asmstate_t *as, lwasm_line_t *l, char **p) | 36 #define OPFUNC(fn) void (fn)(asmstate_t *as, lwasm_line_t *l, char **p, int opnum) |
37 | 37 |
38 #ifndef __instab_c_seen__ | 38 #ifndef __instab_c_seen__ |
39 extern instab_t instab[]; | 39 extern instab_t instab[]; |
40 #endif //__instab_c_seen__ | 40 #endif //__instab_c_seen__ |
41 | 41 |