mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-04-20 15:47:20 -05:00
pedantic formatting changes for pointers.py
original-commit-id: 00a2e4e1192513885f9a6e2e77bb78d2bcb1f53c
This commit is contained in:
parent
40f232cea0
commit
2b6ca1f9a8
|
|
@ -1,11 +1,12 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
""" Various functions related to pointer and address math. Mostly to avoid
|
||||
depedency loops.
|
||||
"""
|
||||
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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user