summaryrefslogtreecommitdiff
path: root/crystal.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-03-23 01:26:02 -0500
committerBryan Bishop <kanzure@gmail.com>2012-03-23 01:26:02 -0500
commit1506ff6aaf46ea76420383b5386574ad6d039f84 (patch)
treeeecda48efbb167024f2c964ac413cc329282fddc /crystal.py
parent7e2e583f2c7ea087dfa49697b8a70af77013bb04 (diff)
calculate_pointer_from_bytes_at update suggested by sankina
original-commit-id: 4462b9b2461c1bec27b88b872bda08a0972228c4
Diffstat (limited to 'crystal.py')
-rw-r--r--crystal.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/crystal.py b/crystal.py
index 61de8cc..91e87e3 100644
--- a/crystal.py
+++ b/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):