mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
remove some code cruft from gbz80disasm
This commit is contained in:
parent
315edbe14b
commit
48b2237b82
@ -10,13 +10,6 @@ from romstr import RomStr
|
||||
|
||||
spacing = "\t"
|
||||
|
||||
# this was originally for renaming freeze maps for a unique name
|
||||
def random_hash():
|
||||
available_chars = string.hexdigits[:16]
|
||||
return ''.join(
|
||||
random.choice(available_chars)
|
||||
for dummy in xrange(5))
|
||||
|
||||
def load_rom(filename="../baserom.gbc"):
|
||||
"""loads bytes into memory"""
|
||||
global rom
|
||||
@ -599,9 +592,6 @@ def find_label(local_address, bank_id=0):
|
||||
return label_entry["label"]
|
||||
return None
|
||||
|
||||
def random_asm_label():
|
||||
return ".ASM_" + random_hash()
|
||||
|
||||
def asm_label(address):
|
||||
# why using a random value when you can use the eff. address?
|
||||
return ".ASM_" + hex(address)[2:]
|
||||
|
Loading…
Reference in New Issue
Block a user