diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-03-23 01:26:02 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-03-23 01:26:02 -0500 |
commit | 4462b9b2461c1bec27b88b872bda08a0972228c4 (patch) | |
tree | 3e4f4eb907ae78af66eaf7796d14175fc3ab2783 | |
parent | 14903375a1543062d1e6dc4ec30dffe3848d733d (diff) |
calculate_pointer_from_bytes_at update suggested by sankina
-rw-r--r-- | extras/crystal.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extras/crystal.py b/extras/crystal.py index 61de8cc30..91e87e328 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -498,6 +498,8 @@ def calculate_pointer_from_bytes_at(address, bank=False): byte1 = ord(rom[address]) byte2 = ord(rom[address+1]) temp = byte1 + (byte2 << 8) + if temp == 0: + return None return calculate_pointer(temp, bank) def clean_up_long_info(long_info): |