changeset 818:a634ed0a92cf

Small fix to start offset support in Z80 disassembler
author Michael Pavone <pavone@retrodev.com>
date Wed, 29 Jul 2015 00:03:09 -0700
parents e95978c0988c
children ab017fb09e77
files zdis.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/zdis.c	Tue Jul 28 20:47:13 2015 -0700
+++ b/zdis.c	Wed Jul 29 00:03:09 2015 -0700
@@ -196,7 +196,7 @@
 		}
 		puts("");
 	}
-	for (address = offset; address < filesize; address++) {
+	for (address = offset; address < filesize + offset; address++) {
 		if (is_visited(address)) {
 			encoded = filebuf + address - offset;
 			z80_decode(encoded, &instbuf);