diff lwasm/lwasm.h @ 190:563adfccb645

Added 'sym=expr' opcode handling
author lost
date Sun, 22 Mar 2009 16:08:20 +0000
parents b061350c17e4
children 6ddc861a07d4
line wrap: on
line diff
--- a/lwasm/lwasm.h	Sun Mar 22 06:52:06 2009 +0000
+++ b/lwasm/lwasm.h	Sun Mar 22 16:08:20 2009 +0000
@@ -108,6 +108,7 @@
 	int symaddr;		// set if this instruction sets a symbol addr with EQU or the like
 	int badop;			// bad operation - ignore it
 	int context;		// the symbol context for this line
+	int forceglobal;	// force a "global" symbol definition if constant
 	
 	// the following are used for obj format - for external references, inter-section
 	// references, and intrasection relocations
@@ -125,6 +126,7 @@
 #define SYMBOL_FORCE	4	// force resetting the symbol value if it already exists on pass 2
 #define SYMBOL_NORM		0	// no flags
 #define SYMBOL_EXTERN	8	// the symbol is an external reference
+#define SYMBOL_GLOBAL	16	// force global if non-complex symbol
 typedef struct lwasm_symbol_ent_s lwasm_symbol_ent_t;
 struct lwasm_symbol_ent_s
 {