Mercurial > hg-old > index.cgi
comparison src/insn_rel.c @ 37:538e15927776
Added symbol handling to expression subsystem; adpated instruction handlers to the new scheme; misc fixes
author | lost |
---|---|
date | Sat, 03 Jan 2009 04:20:49 +0000 |
parents | 74a3fef7c8d0 |
children | 89657cb3fdf8 |
comparison
equal
deleted
inserted
replaced
36:99e3b3310bac | 37:538e15927776 |
---|---|
35 lwasm_expr_stack_t *s; | 35 lwasm_expr_stack_t *s; |
36 int v; | 36 int v; |
37 | 37 |
38 lwasm_emitop(as, l, instab[opnum].ops[0]); | 38 lwasm_emitop(as, l, instab[opnum].ops[0]); |
39 | 39 |
40 s = lwasm_expr_eval(*p, NULL); | 40 s = lwasm_evaluate_expr(as, l, *p, NULL); |
41 if (!s) | 41 if (!s) |
42 { | 42 { |
43 register_error(as, l, 1, "Bad operand"); | 43 register_error(as, l, 1, "Bad operand"); |
44 lwasm_emitop(as, l, 0); | 44 lwasm_emitop(as, l, 0); |
45 return; | 45 return; |
60 lwasm_expr_stack_t *s; | 60 lwasm_expr_stack_t *s; |
61 int v; | 61 int v; |
62 | 62 |
63 lwasm_emitop(as, l, instab[opnum].ops[0]); | 63 lwasm_emitop(as, l, instab[opnum].ops[0]); |
64 | 64 |
65 s = lwasm_expr_eval(*p, NULL); | 65 s = lwasm_evaluate_expr(as, l, *p, NULL); |
66 if (!s) | 66 if (!s) |
67 { | 67 { |
68 register_error(as, l, 1, "Bad operand"); | 68 register_error(as, l, 1, "Bad operand"); |
69 lwasm_emitop(as, l, 0); | 69 lwasm_emitop(as, l, 0); |
70 return; | 70 return; |