Skip to content

Commit

Permalink
remove some code cruft from gbz80disasm
Browse files Browse the repository at this point in the history
  • Loading branch information
kanzure committed Jun 7, 2012
1 parent 315edbe commit 48b2237
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions extras/gbz80disasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@

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
Expand Down Expand Up @@ -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:]
Expand Down

0 comments on commit 48b2237

Please sign in to comment.