From aed0202999656cf4cafd26c52bd98d9fcf5e63d4 Mon Sep 17 00:00:00 2001 From: yenatch Date: Tue, 14 May 2013 18:18:07 -0400 Subject: [PATCH] gbz80disasm: bank 1 was being read as bank 0 --- extras/gbz80disasm.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extras/gbz80disasm.py b/extras/gbz80disasm.py index 325f200e4..1026572b8 100644 --- a/extras/gbz80disasm.py +++ b/extras/gbz80disasm.py @@ -595,9 +595,7 @@ def output_bank_opcodes(original_offset, max_byte_count=0x4000, include_last_add load_labels() load_rom() - bank_id = 0 - if original_offset > 0x8000: - bank_id = original_offset / 0x4000 + bank_id = original_offset / 0x4000 if debug: print "bank id is: " + str(bank_id) last_hl_address = None #for when we're scanning the main map script