From bb8d28d9fbb19dc79247f82af1c2fc42ff13e691 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Wed, 29 Jul 2015 00:03:09 -0700 Subject: Small fix to start offset support in Z80 disassembler --- zdis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zdis.c') diff --git a/zdis.c b/zdis.c index 078b4fa..82455da 100644 --- a/zdis.c +++ b/zdis.c @@ -196,7 +196,7 @@ int main(int argc, char ** argv) } 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); -- cgit v1.2.3