summaryrefslogtreecommitdiff
path: root/gbz80disasm.py
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-05-15 14:49:49 -0400
committeryenatch <yenatch@gmail.com>2013-05-15 14:57:04 -0400
commit98379e786fa81cfa9ad229eaee40185fa2717971 (patch)
treeddc589d33f192e5a851dea81b72b03a63a3d92a6 /gbz80disasm.py
parent1a3cfd3dda3d3aae87d1a003c8740a01fbee1977 (diff)
gbz80disasm: include comments on unresolved backward relative jumps
original-commit-id: 5521aa5ce0ad5249ff0d369dd33b4f63cd804b73
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 a8e4683..b27ce17 100644
--- a/gbz80disasm.py
+++ b/gbz80disasm.py
@@ -718,7 +718,8 @@ def output_bank_opcodes(original_offset, max_byte_count=0x4000, include_last_add
byte_labels[target_address]["definition"] = False
insertion = line_label2.lower()
- include_comment = False
+ if has_outstanding_labels(byte_labels) and all_outstanding_labels_are_reverse(byte_labels, offset):
+ include_comment = True
elif current_byte == 0x3e:
last_a_address = rom[offset + 1]