summaryrefslogtreecommitdiff
path: root/pokemontools
diff options
context:
space:
mode:
Diffstat (limited to 'pokemontools')
-rw-r--r--pokemontools/crystal.py10
-rw-r--r--pokemontools/labels.py10
2 files changed, 10 insertions, 10 deletions
diff --git a/pokemontools/crystal.py b/pokemontools/crystal.py
index b4d5185..d5a861f 100644
--- a/pokemontools/crystal.py
+++ b/pokemontools/crystal.py
@@ -7157,16 +7157,6 @@ class Label:
name = obj.make_label()
return name
-def find_labels_without_addresses():
- """scans the asm source and finds labels that are unmarked"""
- without_addresses = []
- for (line_number, line) in enumerate(asm):
- if labels.line_has_label(line):
- label = labels.get_label_from_line(line)
- if not labels.line_has_comment_address(line):
- without_addresses.append({"line_number": line_number, "line": line, "label": label})
- return without_addresses
-
label_errors = ""
def get_labels_between(start_line_id, end_line_id, bank):
foundlabels = []
diff --git a/pokemontools/labels.py b/pokemontools/labels.py
index 8fefd2c..96e34b9 100644
--- a/pokemontools/labels.py
+++ b/pokemontools/labels.py
@@ -197,3 +197,13 @@ def get_label_from_line(line):
#split up the line
label = line.split(":")[0]
return label
+
+def find_labels_without_addresses(asm):
+ """scans the asm source and finds labels that are unmarked"""
+ without_addresses = []
+ for (line_number, line) in enumerate(asm):
+ if line_has_label(line):
+ label = get_label_from_line(line)
+ if not line_has_comment_address(line):
+ without_addresses.append({"line_number": line_number, "line": line, "label": label})
+ return without_addresses