diff lwasm/pseudo.c @ 190:563adfccb645

Added 'sym=expr' opcode handling
author lost
date Sun, 22 Mar 2009 16:08:20 +0000
parents 02ada556bcc0
children bfd0fb0a85c2
line wrap: on
line diff
--- a/lwasm/pseudo.c	Sun Mar 22 06:52:06 2009 +0000
+++ b/lwasm/pseudo.c	Sun Mar 22 16:08:20 2009 +0000
@@ -294,7 +294,7 @@
 	
 	// note: we need to do this because the symbol might have resolved
 	// to a constant!
-	lwasm_register_symbol(as, l, l -> sym, v, (r > 0 ? SYMBOL_COMPLEX: SYMBOL_NORM) | SYMBOL_FORCE);
+	lwasm_register_symbol(as, l, l -> sym, v, (r > 0 ? SYMBOL_COMPLEX: SYMBOL_NORM) | SYMBOL_FORCE | (l -> forceglobal ? SYMBOL_GLOBAL : SYMBOL_NORM));
 }
 
 OPFUNC(pseudo_set)