diff options
author | yenatch <yenatch@gmail.com> | 2014-03-23 02:19:38 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2014-03-23 02:19:38 -0400 |
commit | 1129d71e2ccd3bfe4d635cf7d280a300c0338b09 (patch) | |
tree | 6039c57dfda4259da1d7742eebe79acfbc7efd55 | |
parent | 943e7b704fa5dfd12ea0318f76b0add50e5d21f8 (diff) |
get_label_for: Return a label or None.
Don't return an address and call it a label.
-rw-r--r-- | pokemontools/crystal.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/pokemontools/crystal.py b/pokemontools/crystal.py index 0076f67..697960c 100644 --- a/pokemontools/crystal.py +++ b/pokemontools/crystal.py @@ -7095,12 +7095,7 @@ def get_label_for(address): else: return "AlreadyParsedNoDefaultUnknownLabel_" + hex(address) - #return "NotYetParsed_"+hex(address) - if address > 0x7FFF: - value = 0x4000 + (address % 0x4000) - return "$%.2x"%(value) - else: - return "$%.2x"%(address) + return None # all_new_labels is a temporary replacement for all_labels, # at least until the two approaches are merged in the code base. |