comparison lwasm/pass1.c @ 107:b3557f8325f7

Fixed bug with symbol on a line with a comment not getting registered
author lost@l-w.ca
date Sat, 06 Aug 2011 23:29:17 -0600
parents 5bf9edabd661
children 697bc543368c
comparison
equal deleted inserted replaced
106:43a3f1068027 107:b3557f8325f7
258 { 258 {
259 if (!strcasecmp(instab[opnum].opcode, sym)) 259 if (!strcasecmp(instab[opnum].opcode, sym))
260 break; 260 break;
261 } 261 }
262 262
263 // have to go to linedone here in case there was a symbol
264 // to register on this line
263 if (instab[opnum].opcode == NULL && (*tok == '*' || *tok == ';' || *tok == '#')) 265 if (instab[opnum].opcode == NULL && (*tok == '*' || *tok == ';' || *tok == '#'))
264 goto nextline; 266 goto linedone;
265 267
266 // p1 points to the start of the operand 268 // p1 points to the start of the operand
267 269
268 // if we're inside a macro definition and not at ENDM, 270 // if we're inside a macro definition and not at ENDM,
269 // add the line to the macro definition and continue 271 // add the line to the macro definition and continue