comparison lwasm/instab.h @ 333:507f442dc71e

Add support for 6800 compatibility instructions. The occasional program uses the 6800 compatibility instructions since they are actually specified by Motorola in at least some documentation. They advertised the 6809 as source compatible with the 6800. This mode is not enabled by default, however. It is my belief that receiving an error when using a non-6809 instruction is more useful since it is unlikely that much 6800 source code is being assembled for the 6809 these days. Nevertheless, the --6809compat option is present for just those purposes so one does not have to resort to using macros (which would work equally well in most cases).
author William Astle <lost@l-w.ca>
date Tue, 15 Apr 2014 10:57:34 -0600
parents 697bc543368c
children c6d2a1f54e0c
comparison
equal deleted inserted replaced
332:26bfe8d557e2 333:507f442dc71e
42 lwasm_insn_endm = 2, /* end of macro */ 42 lwasm_insn_endm = 2, /* end of macro */
43 lwasm_insn_setsym = 4, /* insn sets symbol address */ 43 lwasm_insn_setsym = 4, /* insn sets symbol address */
44 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 */ 45 lwasm_insn_struct = 16, /* insn allowed in a struct */
46 lwasm_insn_setdata = 32, /* insn uses the data address for symbols */ 46 lwasm_insn_setdata = 32, /* insn uses the data address for symbols */
47 lwasm_insn_is6800 = 64, /* insn is a 6800 compatibility operation */
47 lwasm_insn_normal = 0 48 lwasm_insn_normal = 0
48 }; 49 };
49 50
50 51
51 #define PARSEFUNC(fn) void (fn)(asmstate_t *as, line_t *l, char **p) 52 #define PARSEFUNC(fn) void (fn)(asmstate_t *as, line_t *l, char **p)