diff lwasm/lwasm.h @ 367:c6d2a1f54e0c

Change processor target variations to pragmas. Add "pragma 6809" and "pragma 6309" which select the processor target rather than a global flag. The command line switches set or reset the pragma appropriately. Thanks to Erik G <erik@6809.org> for the patch.
author William Astle <lost@l-w.ca>
date Mon, 15 Jun 2015 21:21:58 -0600
parents 433dbc18fb41
children 8764142b3192
line wrap: on
line diff
--- a/lwasm/lwasm.h	Tue Jun 02 20:58:14 2015 -0600
+++ b/lwasm/lwasm.h	Mon Jun 15 21:21:58 2015 -0600
@@ -63,12 +63,6 @@
 	OUTPUT_HEX			// generic hexadecimal format
 };
 
-enum lwasm_target_e
-{
-	TARGET_6309 = 0,	// target 6309 CPU
-	TARGET_6809			// target 6809 CPU (no 6309 ops)
-};
-
 enum lwasm_flags_e
 {
 	FLAG_LIST = 0x0001,
@@ -97,7 +91,8 @@
 	PRAGMA_SYMBOLNOCASE = 0x400,		// symbols defined under this pragma are matched case insensitively
 	PRAGMA_CONDUNDEFZERO = 0x800,		// treat undefined symbols as zero in conditionals during pass 1
 	PRAGMA_6800COMPAT = 0x1000,			// enable 6800 compatibility opcodes
-	PRAGMA_FORWARDREFMAX = 0x2000		// force incomplete references on pass 1 to maximum mode
+	PRAGMA_FORWARDREFMAX = 0x2000,		// force incomplete references on pass 1 to maximum mode
+	PRAGMA_6809 = 0x4000				// 6809/6309 assembly mode
 };
 
 
@@ -272,7 +267,6 @@
 struct asmstate_s
 {
 	int output_format;					// output format
-	int target;							// assembly target
 	int debug_level;					// level of debugging requested
 	FILE *debug_file;					// FILE * to output debug messages to
 	int flags;							// assembly flags