diff src/pass1.c @ 44:2330b88f9600

Added simple output listing
author lost
date Sun, 04 Jan 2009 06:52:18 +0000
parents 4bb7b723e5b7
children b962cee20bf4
line wrap: on
line diff
--- a/src/pass1.c	Sun Jan 04 06:16:22 2009 +0000
+++ b/src/pass1.c	Sun Jan 04 06:52:18 2009 +0000
@@ -141,8 +141,7 @@
 			nl -> codesize = 0;
 			if (as -> linestail)
 				as -> linestail -> next = nl;
-			else
-				as -> linestail = nl;
+			as -> linestail = nl;
 			if (!(as -> lineshead))
 				as -> lineshead = nl;
 			lwasm_parse_line(as, nl);
@@ -160,6 +159,7 @@
 	as -> passnum = 1;
 	as -> addr = 0;
 	
+	debug_message(1, "Entering pass 1");
 	if (lwasm_read_file(as, as -> infile) < 0)
 	{
 		fprintf(stderr, "Error reading input file '%s'", as -> infile);