crystal: wram label finding

This commit is contained in:
yenatch 2013-06-28 21:49:50 -04:00
parent 17b5e86311
commit daf3930984
1 changed files with 5 additions and 5 deletions

View File

@ -7353,15 +7353,15 @@ def write_all_labels(all_labels, filename="labels.json"):
fh.close()
return True
# TODO: implement get_ram_label
# wram.asm integration would be nice
from wram import wram_labels
def get_ram_label(address):
"""not implemented yet.. supposed to get a label for a particular RAM location
like W_PARTYPOKE1HP"""
"""returns a label assigned to a particular ram address"""
if address in wram_labels.keys():
return wram_labels[address][-1]
return None
def get_label_for(address):
"""returns a label assigned to a particular address"""
"""returns a label assigned to a particular rom address"""
global all_labels
if address == None: