remove some code cruft from gbz80disasm

This commit is contained in:
Bryan Bishop 2012-06-06 20:43:02 -05:00
parent 315edbe14b
commit 48b2237b82

View File

@ -10,13 +10,6 @@ from romstr import RomStr
spacing = "\t" 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"): def load_rom(filename="../baserom.gbc"):
"""loads bytes into memory""" """loads bytes into memory"""
global rom global rom
@ -599,9 +592,6 @@ def find_label(local_address, bank_id=0):
return label_entry["label"] return label_entry["label"]
return None return None
def random_asm_label():
return ".ASM_" + random_hash()
def asm_label(address): def asm_label(address):
# why using a random value when you can use the eff. address? # why using a random value when you can use the eff. address?
return ".ASM_" + hex(address)[2:] return ".ASM_" + hex(address)[2:]