summaryrefslogtreecommitdiff
path: root/gbz80disasm.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-01-27 16:52:20 -0600
committerBryan Bishop <kanzure@gmail.com>2013-01-27 16:52:20 -0600
commitbaa2523bfba34f48626b829a788fdb01a3a5adaf (patch)
tree62f974727bd2f8e054e7a3eb363dbe342ee78108 /gbz80disasm.py
parentfe8e2a0a4b62dd5f2140c0998b4145ac2a783468 (diff)
remove extra whitespace in gbz80disasm
original-commit-id: ac47399e66c333dd733a352e2c93689908eaba3b
Diffstat (limited to 'gbz80disasm.py')
-rw-r--r--gbz80disasm.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gbz80disasm.py b/gbz80disasm.py
index 9b1c775..aab39db 100644
--- a/gbz80disasm.py
+++ b/gbz80disasm.py
@@ -14,7 +14,7 @@ from romstr import RomStr
def load_rom(filename="../baserom.gbc"):
"""loads bytes into memory"""
global rom
- file_handler = open(filename, "rb")
+ file_handler = open(filename, "rb")
rom = RomStr(file_handler.read())
file_handler.close()
return rom
@@ -548,7 +548,7 @@ end_08_scripts_with = [
0xc9, #ret
###0xda, 0xe9, 0xd2, 0xc2, 0xca, 0xc3, 0x38, 0x30, 0x20, 0x28, 0x18, 0xd8, 0xd0, 0xc0, 0xc8, 0xc9
]
-relative_jumps = [0x38, 0x30, 0x20, 0x28, 0x18, 0xc3, 0xda, 0xc2]
+relative_jumps = [0x38, 0x30, 0x20, 0x28, 0x18, 0xc3, 0xda, 0xc2]
relative_unconditional_jumps = [0xc3, 0x18]
call_commands = [0xdc, 0xd4, 0xc4, 0xcc, 0xcd]
@@ -599,10 +599,10 @@ def output_bank_opcodes(original_offset, max_byte_count=0x4000, debug = False):
#i = offset
#ad = end_address
#a, oa = current_byte_number
-
+
load_labels()
load_rom()
-
+
bank_id = 0
if original_offset > 0x8000:
bank_id = original_offset / 0x4000