diff src/insn_bitbit.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 8929e1ee99cf
line wrap: on
line diff
--- a/src/insn_bitbit.c	Fri Jan 02 06:07:40 2009 +0000
+++ b/src/insn_bitbit.c	Sat Jan 03 04:20:49 2009 +0000
@@ -59,7 +59,7 @@
 		register_error(as, l, 1, "Bad operand");
 		return;
 	}
-	s = lwasm_expr_eval(*p, NULL);
+	s = lwasm_evaluate_expr(as, l, *p, NULL);
 	if (!s)
 	{
 		register_error(as, l, 1, "Bad operand");
@@ -83,7 +83,7 @@
 	}
 	r = (r << 6) | (v1 << 3);
 
-	s = lwasm_expr_eval(*p, NULL);
+	s = lwasm_evaluate_expr(as, l, *p, NULL);
 	if (!s)
 	{
 		register_error(as, l, 1, "Bad operand");
@@ -113,7 +113,7 @@
 	if (**p == '<')
 		(*p)++;
 			
-	s = lwasm_expr_eval(*p, NULL);
+	s = lwasm_evaluate_expr(as, l, *p, NULL);
 	if (!s)
 	{
 		register_error(as, l, 1, "Bad operand");