diff options
author | yenatch <yenatch@gmail.com> | 2013-05-15 14:49:49 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2013-05-15 14:57:04 -0400 |
commit | 5521aa5ce0ad5249ff0d369dd33b4f63cd804b73 (patch) | |
tree | 831df9be5469d1390f9b279a013ed0251c24fca7 /extras/gbz80disasm.py | |
parent | b38e2874095266d45df984be778d9fe68832aaac (diff) |
gbz80disasm: include comments on unresolved backward relative jumps
Diffstat (limited to 'extras/gbz80disasm.py')
-rw-r--r-- | extras/gbz80disasm.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extras/gbz80disasm.py b/extras/gbz80disasm.py index a8e468379..b27ce17ad 100644 --- a/extras/gbz80disasm.py +++ b/extras/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] |