diff src/pass2.c @ 54:360d53062bb9

Fixed typo in instruction table and added END directive
author lost
date Sun, 04 Jan 2009 20:38:12 +0000
parents 04868fa52a15
children 035b95a3690f
line wrap: on
line diff
--- a/src/pass2.c	Sun Jan 04 20:28:30 2009 +0000
+++ b/src/pass2.c	Sun Jan 04 20:38:12 2009 +0000
@@ -36,8 +36,9 @@
 	as -> passnum = 2;
 	as -> addr = 0;
 	as -> context = 0;
+	as -> endseen = 0;
 	
 	// iterate over all the lines and re-parse them
-	for (l = as -> lineshead; l; l = l -> next)
+	for (l = as -> lineshead; l && !(as -> endseen); l = l -> next)
 		lwasm_parse_line(as, l);
 }