summaryrefslogtreecommitdiff
path: root/romstr.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-01-27 16:41:35 -0600
committerBryan Bishop <kanzure@gmail.com>2013-01-27 16:41:35 -0600
commita1d75be754f73b1701fc8bb9effb26555e4cf2ac (patch)
treed477226bf77f589c9c04670c1407a6a33f207d42 /romstr.py
parentb14f54f861972c8a4648d70ccddecd386f70ecb2 (diff)
better formatting for romstr imports
original-commit-id: 8f4b5dae2a36bfb98f04e941252462b69b8cf953
Diffstat (limited to 'romstr.py')
-rw-r--r--romstr.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/romstr.py b/romstr.py
index 279b447..2c0d5c1 100644
--- a/romstr.py
+++ b/romstr.py
@@ -1,8 +1,17 @@
-import sys, os, time, datetime, json
-from gbz80disasm import opt_table
+import sys
+import os
+import time
+import datetime
+import json
from ctypes import c_int8
from copy import copy
-from labels import get_label_from_line, get_address_from_line_comment
+
+from gbz80disasm import opt_table
+
+from labels import (
+ get_label_from_line,
+ get_address_from_line_comment,
+)
relative_jumps = [0x38, 0x30, 0x20, 0x28, 0x18, 0xc3, 0xda, 0xc2, 0x32]
relative_unconditional_jumps = [0xc3, 0x18]