diff lwasm/lwasm.h @ 384:6ee9c67a0f8d

Add conditional for testing if a pragma is in effect An obvious addition that took someone else to notice... Thanks to Erik G <erik@6809.org> for the patch.
author William Astle <lost@l-w.ca>
date Mon, 13 Jul 2015 21:20:30 -0600
parents 80d615a6642c
children 4fd16faa4d93
line wrap: on
line diff
--- a/lwasm/lwasm.h	Mon Jul 13 21:19:38 2015 -0600
+++ b/lwasm/lwasm.h	Mon Jul 13 21:20:30 2015 -0600
@@ -99,7 +99,8 @@
 	PRAGMA_CT					= 1 << 18,	// enable cycle count running total
 	PRAGMA_CC					= 1 << 19,	// clear cycle count running total
 	PRAGMA_QRTS					= 1 << 20,	// enable BRA ?RTS support
-	PRAGMA_M80EXT				= 1 << 21	// enable Macro-80C assembler extensions
+	PRAGMA_M80EXT				= 1 << 21,	// enable Macro-80C assembler extensions
+	PRAGMA_CLEARBIT				= 1 << 31	// reserved to indicate negated pragma flag status
 };
 
 enum
@@ -419,6 +420,8 @@
 struct symtabe *register_symbol(asmstate_t *as, line_t *cl, char *sym, lw_expr_t value, int flags);
 struct symtabe *lookup_symbol(asmstate_t *as, line_t *cl, char *sym);
 
+int parse_pragma_helper(char *p);
+
 int lwasm_cycle_calc_ind(line_t *cl);
 int lwasm_cycle_calc_rlist(line_t *cl);
 void lwasm_cycle_update_count(line_t *cl, int opc);