# HG changeset patch # User lost@l-w.ca # Date 1315008626 21600 # Node ID d59f17580e8b42be7774b538b07153241a3749dd # Parent 372d7c881831075f9a0cd0028b0c94bdd88e69f4 Actually check for 6309 instructions when in 6809 mode. Thanks to adamgr on IRC for finding the problem. diff -r 372d7c881831 -r d59f17580e8b lwasm/pass1.c --- a/lwasm/pass1.c Mon Aug 29 19:18:23 2011 -0600 +++ b/lwasm/pass1.c Fri Sep 02 18:10:26 2011 -0600 @@ -274,6 +274,8 @@ if (!strcasecmp(instab[opnum].opcode, sym)) break; } + if ((as -> target == TARGET_6309) && (instab[opnum].flags & lwasm_insn_is6309)) + lwasm_register_error(as, cl, "Illegal use of 6309 instruction in 6809 mode (%s)", sym); // have to go to linedone here in case there was a symbol // to register on this line