diff options
author | Sanky <gsanky@gmail.com> | 2013-02-02 23:13:32 +0100 |
---|---|---|
committer | Sanky <gsanky@gmail.com> | 2013-02-02 23:20:50 +0100 |
commit | 7df002c3e20f1b728b1d29a877c3731d4867f502 (patch) | |
tree | 14cf8cb4dc2a95f4137de1967679dd45df3c0db8 /extras/pointers.py | |
parent | 6b8d77ffb23443cac8ca8bc570c758f7b77fa109 (diff) | |
parent | 1bf1d6e3ea7b75445803ed8d01c49014adf2e114 (diff) |
Merge https://github.com/kanzure/pokecrystal
Conflicts:
constants.asm
extras/crystal.py
main.asm
Diffstat (limited to 'extras/pointers.py')
-rw-r--r-- | extras/pointers.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/extras/pointers.py b/extras/pointers.py index f3922417b..8fe3df31b 100644 --- a/extras/pointers.py +++ b/extras/pointers.py @@ -1,10 +1,12 @@ -""" Various functions related to pointer and address math. Mostly to avoid - depedency loops. +# -*- coding: utf-8 -*- +""" +Various functions related to pointer and address math. Mostly to avoid +depedency loops. """ def calculate_bank(address): """you are too lazy to divide on your own?""" - if type(address) == str: + if type(address) == str: address = int(address, 16) #if 0x4000 <= address <= 0x7FFF: # raise Exception, "bank 1 does not exist" |