summaryrefslogtreecommitdiff
path: root/gbz80disasm.py
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-06-25 03:57:49 -0400
committeryenatch <yenatch@gmail.com>2013-06-25 03:57:49 -0400
commit99b42da1500fbb38700a41548e760f9cd17fc2e9 (patch)
tree417d315987d583b30a43b454295ff9c8436edf63 /gbz80disasm.py
parentfa0ee277df38c5211ba9d08b24d80af4a61230dc (diff)
gbz80disasm: fix data handling
get the scalpel out of there original-commit-id: 91f7c123f4a54beddf8c9de0f8a10195ad3d7667
Diffstat (limited to 'gbz80disasm.py')
-rw-r--r--gbz80disasm.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbz80disasm.py b/gbz80disasm.py
index e76e16c..29c274a 100644
--- a/gbz80disasm.py
+++ b/gbz80disasm.py
@@ -848,7 +848,6 @@ def output_bank_opcodes(original_offset, max_byte_count=0x4000, include_last_add
keep_reading = True
output += "\n"
elif is_data and offset not in byte_labels.keys():
- print hex(offset), output.split('\n')[-2]
is_data = True
keep_reading = True
else:
@@ -858,6 +857,8 @@ def output_bank_opcodes(original_offset, max_byte_count=0x4000, include_last_add
if offset in data_tables.keys():
output = output.replace('$%x' % (get_local_address(offset)), data_label(offset).lower())
output += data_label(offset).lower() + '\n'
+ is_data = True
+ keep_reading = True
first_loop = False