changeset 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 7fbccdd1defb
files src/pseudo.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
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;