diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-06-20 01:42:33 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-06-20 01:42:33 -0500 |
commit | 1342ab67db4301563d317722d04fab9473411fda (patch) | |
tree | 453ed42784e79e626955b1da216567dc8e8aa845 /extras/crystal.py | |
parent | ca07f1d64c0235b49160fc501553a70af8331d81 (diff) |
more de-dependency-looping
Diffstat (limited to 'extras/crystal.py')
-rw-r--r-- | extras/crystal.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/extras/crystal.py b/extras/crystal.py index 22bd6ecda..97ca30c2e 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -302,15 +302,7 @@ def load_map_group_offsets(): map_group_offsets.append(offset) return map_group_offsets -def calculate_bank(address): - """you are too lazy to divide on your own?""" - if type(address) == str: - address = int(address, 16) - if 0x4000 <= address <= 0x7FFF: - raise Exception, "bank 1 does not exist" - return int(address) / 0x4000 - -from pointers import calculate_pointer +from pointers import calculate_bank, calculate_pointer def calculate_pointer_from_bytes_at(address, bank=False): """calculates a pointer from 2 bytes at a location |