diff src/list.c @ 47:804d7465e0f9

Implemented ORG and fixed problems with constants using $, &, or @ to specify base
author lost
date Sun, 04 Jan 2009 07:25:03 +0000
parents be459d69f481
children 21ae0fab469b
line wrap: on
line diff
--- a/src/list.c	Sun Jan 04 07:07:00 2009 +0000
+++ b/src/list.c	Sun Jan 04 07:25:03 2009 +0000
@@ -69,12 +69,9 @@
 	{
 		fprintf(lf, "%04X ", l -> codeaddr);
 		
-		if (l -> codelen > 0)
+		for (c = 0; c < l -> codelen && c < 5; c++)
 		{
-			for (c = 0; c < l -> codelen && c < 5; c++)
-			{
-				fprintf(lf, "%02X", l -> bytes[c]);
-			}
+			fprintf(lf, "%02X", l -> bytes[c]);
 		}
 		while (c < 5)
 		{