summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-07-29 00:03:09 -0700
committerMichael Pavone <pavone@retrodev.com>2015-07-29 00:03:09 -0700
commitbb8d28d9fbb19dc79247f82af1c2fc42ff13e691 (patch)
tree403eb0109a9529fbee6c12b719c1b7c79fe6a159
parent99aeb2939b79737f6b3b2381e9e855e6b60aa7c9 (diff)
Small fix to start offset support in Z80 disassembler
-rw-r--r--zdis.c2
1 files changed, 1 insertions, 1 deletions
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);