diff src/insn_gen.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 b29eec6f3819
children da1337724ecd
line wrap: on
line diff
--- a/src/insn_gen.c	Fri Jan 02 06:07:40 2009 +0000
+++ b/src/insn_gen.c	Sat Jan 03 04:20:49 2009 +0000
@@ -61,7 +61,7 @@
 			(*optr)++;
 			f16 = 1;
 		}
-		s = lwasm_expr_eval(*optr, NULL);
+		s = lwasm_evaluate_expr(as, l, *optr, NULL);
 		if (!s)
 		{
 			register_error(as, l, 1, "Bad expression");
@@ -138,7 +138,7 @@
 	{
 		lwasm_emitop(as, l, instab[opnum].ops[3]);
 		(*p)++;
-		s = lwasm_expr_eval(*p, NULL);
+		s = lwasm_evaluate_expr(as, l, *p, NULL);
 		if (!s)
 		{
 			register_error(as, l, 1, "Bad expression");
@@ -169,7 +169,7 @@
 	{
 		lwasm_emitop(as, l, instab[opnum].ops[3]);
 		(*p)++;
-		s = lwasm_expr_eval(*p, NULL);
+		s = lwasm_evaluate_expr(as, l, *p, NULL);
 		if (!s)
 		{
 			register_error(as, l, 1, "Bad expression");
@@ -199,7 +199,7 @@
 	{
 		lwasm_emitop(as, l, instab[opnum].ops[3]);
 		(*p)++;
-		s = lwasm_expr_eval(*p, NULL);
+		s = lwasm_evaluate_expr(as, l, *p, NULL);
 		if (!s)
 		{
 			register_error(as, l, 1, "Bad expression");
@@ -231,7 +231,7 @@
 	{
 		lwasm_emitop(as, l, instab[opnum].ops[0]);
 		(*p)++;
-		s = lwasm_expr_eval(*p, NULL);
+		s = lwasm_evaluate_expr(as, l, *p, NULL);
 		if (!s)
 		{
 			register_error(as, l, 1, "Bad expression");