comparison lwasm/insn_gen.c @ 177:f8b07153abc4

Make 'imm8' instructions actually complain about a bad operand if no # is present
author lost@l-w.ca
date Wed, 07 Sep 2011 21:59:10 -0600
parents b78b2f1e011e
children d0e9dbe9afbe
comparison
equal deleted inserted replaced
176:03f425c6c39c 177:f8b07153abc4
430 return; 430 return;
431 } 431 }
432 l -> len = OPLEN(instab[l -> insn].ops[0]) + 1; 432 l -> len = OPLEN(instab[l -> insn].ops[0]) + 1;
433 lwasm_save_expr(l, 0, e); 433 lwasm_save_expr(l, 0, e);
434 } 434 }
435 else
436 {
437 lwasm_register_error(as, l, "Bad operand");
438 }
435 } 439 }
436 440
437 EMITFUNC(insn_emit_imm8) 441 EMITFUNC(insn_emit_imm8)
438 { 442 {
439 lw_expr_t e; 443 lw_expr_t e;