Mercurial > hg-old > index.cgi
diff src/parse.c @ 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 | cef25b0088e6 |
children | 918be0c02239 |
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;