comparison 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
comparison
equal deleted inserted replaced
70:8aa6a28cba02 71:90a5657d5408
175 // register symbol if the operation didn't 175 // register symbol if the operation didn't
176 if (sym && instab[opnum].setsym == 0) 176 if (sym && instab[opnum].setsym == 0)
177 { 177 {
178 if (as -> passnum == 1) 178 if (as -> passnum == 1)
179 { 179 {
180 debug_message(1, "Registering symbol '%s' at %04X", sym, as -> addr); 180 debug_message(1, "Registering symbol '%s' at %04X", sym, l -> codeaddr);
181 if (lwasm_register_symbol(as, l, sym, as -> addr, SYMBOL_NORM) < 0) 181 if (lwasm_register_symbol(as, l, sym, l -> codeaddr, SYMBOL_NORM) < 0)
182 l -> sym = NULL; 182 l -> sym = NULL;
183 else 183 else
184 l -> addrset = 1; 184 l -> addrset = 1;
185 } 185 }
186 } 186 }