# HG changeset patch # User lost # Date 1231222282 0 # Node ID 90a5657d54081b12f854e0aabe76f95a0e328a70 # Parent 8aa6a28cba0222ead960f17109917c44c689fe19 Fixed problem with symbols being registered with the address of the NEXT instruction diff -r 8aa6a28cba02 -r 90a5657d5408 src/parse.c --- 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;