# HG changeset patch # User William Astle # Date 1435022173 21600 # Node ID 2593fd529be508e0e9e8ca82c1deff9a92c9acd3 # Parent 8764142b31920e99532f57957b4ca5fc0bf5c437 Change PRAGMA_SHADOW to behave more as expected Removed hack that allowed shadowing 6309 operation codes in 6809 mode. With recent changes to the assembler adding flexibility to 6809/6309 modes with pragmas, this adds complexity that is not clearly beneficial and would almost certainly lead to a great deal of confusion on the part of the user. diff -r 8764142b3192 -r 2593fd529be5 lwasm/pass1.c --- a/lwasm/pass1.c Mon Jun 22 18:49:38 2015 -0600 +++ b/lwasm/pass1.c Mon Jun 22 19:16:13 2015 -0600 @@ -299,7 +299,7 @@ if (as -> skipcond && !(instab[opnum].flags & lwasm_insn_cond)) goto linedone; - if (!nomacro && ((as->pragmas & PRAGMA_SHADOW) || (!CURPRAGMA(cl, PRAGMA_6809) && (instab[opnum].flags & lwasm_insn_is6309)))) + if (!nomacro && (as->pragmas & PRAGMA_SHADOW)) { // check for macros even if they shadow real operations // NOTE: "ENDM" cannot be shadowed