comparison lwasm/insn_logicmem.c @ 439:b8549694b4c9 3.0

Fixed errors related to lw_expr_t; fixed saving expression in insn_parse_logicmem()
author lost@l-w.ca
date Sat, 30 Oct 2010 10:41:52 -0600
parents eacdae8a1575
children
comparison
equal deleted inserted replaced
438:22bbb716dea6 439:b8549694b4c9
36 36
37 // for aim, oim, eim, tim 37 // for aim, oim, eim, tim
38 PARSEFUNC(insn_parse_logicmem) 38 PARSEFUNC(insn_parse_logicmem)
39 { 39 {
40 const char *p2; 40 const char *p2;
41 lw_expr_t *s; 41 lw_expr_t s;
42 42
43 if (**p == '#') 43 if (**p == '#')
44 (*p)++; 44 (*p)++;
45 45
46 s = lwasm_parse_expr(as, p); 46 s = lwasm_parse_expr(as, p);
48 { 48 {
49 lwasm_register_error(as, l, "Bad operand"); 49 lwasm_register_error(as, l, "Bad operand");
50 return; 50 return;
51 } 51 }
52 52
53 lwasm_save_expr(l, 100, p); 53 lwasm_save_expr(l, 100, s);
54 if (**p != ',' && **p != ';') 54 if (**p != ',' && **p != ';')
55 { 55 {
56 lwasm_register_error(as, l, "Bad operand"); 56 lwasm_register_error(as, l, "Bad operand");
57 return; 57 return;
58 } 58 }