diff src/pass2.c @ 57:035b95a3690f

Added conditional assembly and macros
author lost
date Mon, 05 Jan 2009 00:01:21 +0000
parents 360d53062bb9
children b1d81800bc91
line wrap: on
line diff
--- a/src/pass2.c	Sun Jan 04 21:43:05 2009 +0000
+++ b/src/pass2.c	Mon Jan 05 00:01:21 2009 +0000
@@ -37,8 +37,19 @@
 	as -> addr = 0;
 	as -> context = 0;
 	as -> endseen = 0;
-	
+	as -> skipcond = 0;
+	as -> skipcount = 0;
+	as -> skipmacro = 0;
+	as -> inmacro = 0;
+	as -> nextcontext = 1;
+	as -> skiplines = 0;
+			
 	// iterate over all the lines and re-parse them
 	for (l = as -> lineshead; l && !(as -> endseen); l = l -> next)
-		lwasm_parse_line(as, l);
+	{
+		if (as -> skiplines)
+			as -> skiplines--;
+		else
+			lwasm_parse_line(as, l);
+	}
 }