diff src/pseudo.c @ 49:21ae0fab469b

Added needed infra for useful listing of EQU and ORG type statements
author lost
date Sun, 04 Jan 2009 07:37:19 +0000
parents 804d7465e0f9
children e672232caffe
line wrap: on
line diff
--- a/src/pseudo.c	Sun Jan 04 07:31:20 2009 +0000
+++ b/src/pseudo.c	Sun Jan 04 07:37:19 2009 +0000
@@ -47,8 +47,9 @@
 		register_error(as, l, 1, "Illegal incomplete reference (pass 1)");
 		return;
 	}
-	rval = lwasm_expr_get_value(s);
+	rval = lwasm_expr_get_value(s) & 0xffff;
 	l -> codeaddr = rval;
+	l -> addrset = 1;
 	as -> addr = rval;
 }