calculate_pointer_from_bytes_at update suggested by sankina

This commit is contained in:
Bryan Bishop 2012-03-23 01:26:02 -05:00
parent 14903375a1
commit 4462b9b246

View File

@ -498,6 +498,8 @@ def calculate_pointer_from_bytes_at(address, bank=False):
byte1 = ord(rom[address]) byte1 = ord(rom[address])
byte2 = ord(rom[address+1]) byte2 = ord(rom[address+1])
temp = byte1 + (byte2 << 8) temp = byte1 + (byte2 << 8)
if temp == 0:
return None
return calculate_pointer(temp, bank) return calculate_pointer(temp, bank)
def clean_up_long_info(long_info): def clean_up_long_info(long_info):