Mercurial > hg-old > index.cgi
comparison src/instab.h @ 57:035b95a3690f
Added conditional assembly and macros
author | lost |
---|---|
date | Mon, 05 Jan 2009 00:01:21 +0000 |
parents | f736579569b4 |
children | d85ba47b1e8f |
comparison
equal
deleted
inserted
replaced
56:55260a178667 | 57:035b95a3690f |
---|---|
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 *l, char **optr, int opnum); | 33 void (*fn)(asmstate_t *as, lwasm_line_t *l, char **optr, int opnum); |
34 int iscond; /* set if this should be dispatched even if skipping a condition/macro */ | |
35 int endm; /* end of macro? */ | |
34 } instab_t; | 36 } instab_t; |
35 | 37 |
36 #define OPFUNC(fn) void (fn)(asmstate_t *as, lwasm_line_t *l, char **p, int opnum) | 38 #define OPFUNC(fn) void (fn)(asmstate_t *as, lwasm_line_t *l, char **p, int opnum) |
37 | 39 |
38 #ifndef __instab_c_seen__ | 40 #ifndef __instab_c_seen__ |