diff src/pseudo.c @ 95:f3497072ac44

Fixed think-o in rm* ops (reversed pass number test)
author lost
date Sat, 17 Jan 2009 06:57:58 +0000
parents 83ba34ed11b3
children 3dcb12a6f4ff
line wrap: on
line diff
--- a/src/pseudo.c	Sat Jan 17 06:50:49 2009 +0000
+++ b/src/pseudo.c	Sat Jan 17 06:57:58 2009 +0000
@@ -125,12 +125,13 @@
 {
 	int r, v;
 	
-	if (as -> passnum == 1)
+	if (as -> passnum == 2)
 	{
 		as -> addr += l -> nocodelen;
 		return;
 	}
 	r = lwasm_expr_result2(as, l, p, EXPR_PASS1CONST, &v, -1);
+	fprintf(stderr, "RMB: v=%d, addr=%d\n", v, as -> addr);
 	if (r != 0)
 		return;
 	l -> nocodelen = v;
@@ -141,7 +142,7 @@
 {
 	int r, v;
 	
-	if (as -> passnum == 1)
+	if (as -> passnum == 2)
 	{
 		as -> addr += l -> nocodelen;
 		return;
@@ -158,7 +159,7 @@
 {
 	int r, v;
 	
-	if (as -> passnum == 1)
+	if (as -> passnum == 2)
 	{
 		as -> addr += l -> nocodelen;
 		return;