changeset 71:90a5657d5408

Fixed problem with symbols being registered with the address of the NEXT instruction
author lost
date Tue, 06 Jan 2009 06:11:22 +0000
parents 8aa6a28cba02
children 9fa4f77dd119
files src/parse.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/parse.c	Tue Jan 06 04:51:29 2009 +0000
+++ b/src/parse.c	Tue Jan 06 06:11:22 2009 +0000
@@ -177,8 +177,8 @@
 		{
 			if (as -> passnum == 1)
 			{
-				debug_message(1, "Registering symbol '%s' at %04X", sym, as -> addr);
-				if (lwasm_register_symbol(as, l, sym, as -> addr, SYMBOL_NORM) < 0)
+				debug_message(1, "Registering symbol '%s' at %04X", sym, l -> codeaddr);
+				if (lwasm_register_symbol(as, l, sym, l -> codeaddr, SYMBOL_NORM) < 0)
 					l -> sym = NULL;
 				else
 					l -> addrset = 1;