summaryrefslogtreecommitdiff
path: root/extras/gbz80disasm.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-01-11 00:06:52 -0600
committerBryan Bishop <kanzure@gmail.com>2012-01-11 00:06:52 -0600
commite95b8f1984449853b2c836d0142d1679728dc94a (patch)
treea562dc1abf25793909adf77269df4d04eb4a7847 /extras/gbz80disasm.py
parente4bce7ed15934f991cfc0b2cce0a33bbfd714b6e (diff)
add end address to gbz80disasm output in a comment
hg-commit-id: 1d79cd8b426a
Diffstat (limited to 'extras/gbz80disasm.py')
-rw-r--r--extras/gbz80disasm.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/gbz80disasm.py b/extras/gbz80disasm.py
index 1f9f7c6c..555013c3 100644
--- a/extras/gbz80disasm.py
+++ b/extras/gbz80disasm.py
@@ -755,6 +755,9 @@ def output_bank_opcodes(original_offset, max_byte_count=0x4000):
if label_line["usage"] == 0:
output = output.replace((label_line["name"] + " ; " + hex(address) + "\n").lower(), "")
+ #add the offset of the final location
+ output += "; " + hex(offset)
+
return (output, offset)
def has_outstanding_labels(byte_labels):