comparison lwasm/instab.h @ 389:fbb7bfed8076

Added in structure support and fixed up some warts in the listing code (by adding more warts)
author lost@l-w.ca
date Wed, 14 Jul 2010 22:33:55 -0600
parents 7d91ab7ac7d6
children
comparison
equal deleted inserted replaced
388:8991eb507d2d 389:fbb7bfed8076
36 int flags; /* flag for this instruction */ 36 int flags; /* flag for this instruction */
37 } instab_t; 37 } instab_t;
38 38
39 enum 39 enum
40 { 40 {
41 lwasm_insn_normal = 0,
42 lwasm_insn_cond = 1, /* conditional instruction */ 41 lwasm_insn_cond = 1, /* conditional instruction */
43 lwasm_insn_endm = 2, /* end of macro */ 42 lwasm_insn_endm = 2, /* end of macro */
44 lwasm_insn_setsym = 4, /* insn sets symbol address */ 43 lwasm_insn_setsym = 4, /* insn sets symbol address */
45 lwasm_insn_is6309 = 8 /* insn is 6309 only */ 44 lwasm_insn_is6309 = 8, /* insn is 6309 only */
45 lwasm_insn_struct = 16, /* insn allowed in a struct */
46 lwasm_insn_normal = 0
46 }; 47 };
47 48
48 49
49 #define PARSEFUNC(fn) void (fn)(asmstate_t *as, line_t *l, char **p) 50 #define PARSEFUNC(fn) void (fn)(asmstate_t *as, line_t *l, char **p)
50 #define RESOLVEFUNC(fn) void (fn)(asmstate_t *as, line_t *l, int force) 51 #define RESOLVEFUNC(fn) void (fn)(asmstate_t *as, line_t *l, int force)