comparison lwasm/parse.c @ 250:0986834ec7d3 2.x

Added no-op .bank pseudo-op to support compiling gcc6809
author lost
date Thu, 26 Nov 2009 21:12:45 +0000
parents c8bcc396ec59
children c537a3a723fc
comparison
equal deleted inserted replaced
249:b34071013404 250:0986834ec7d3
192 if (instab[opnum].fn && !(as -> no6309 && instab[opnum].is6309)) 192 if (instab[opnum].fn && !(as -> no6309 && instab[opnum].is6309))
193 { 193 {
194 (instab[opnum].fn)(as, l, &p2, opnum); 194 (instab[opnum].fn)(as, l, &p2, opnum);
195 195
196 // if we didn't end on a "space" character or EOL, throw error 196 // if we didn't end on a "space" character or EOL, throw error
197 if (*p2 && !isspace(*p2) && !(l -> err) && as -> passnum == 1) 197 if (p2 && *p2 && !isspace(*p2) && !(l -> err) && as -> passnum == 1)
198 register_error(as, l, 1, "Bad operand: %s (%d)", p2, as -> passnum); 198 register_error(as, l, 1, "Bad operand: %s (%d)", p2, as -> passnum);
199 } 199 }
200 else 200 else
201 { 201 {
202 // carp about unimplemented operation 202 // carp about unimplemented operation