summaryrefslogtreecommitdiff
path: root/pointers.py
diff options
context:
space:
mode:
authorSanky <gsanky@gmail.com>2013-02-02 23:13:32 +0100
committerSanky <gsanky@gmail.com>2013-02-02 23:20:50 +0100
commit4089cf486d83d78fddaab98316952e1bbeaafd47 (patch)
treef2721b81775a3e450e1a301a4679c9d6159c22b3 /pointers.py
parent43546fd07ac588be694c697873a642c5a2cc8c1d (diff)
parent1e893fae740cd9f82ead9adcb6f5c1ccb1c6090b (diff)
Merge https://github.com/kanzure/pokecrystal
Conflicts: constants.asm extras/crystal.py main.asm original-commit-id: 7df002c3e20f1b728b1d29a877c3731d4867f502
Diffstat (limited to 'pointers.py')
-rw-r--r--pointers.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pointers.py b/pointers.py
index f392241..8fe3df3 100644
--- a/pointers.py
+++ b/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"