summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-05-11 16:26:36 -0500
committerBryan Bishop <kanzure@gmail.com>2012-05-11 16:26:36 -0500
commitba334bbe1730d39c1a38455ad85ceae0cc5450c0 (patch)
treed382982fb27ebd1d58901b2d3a031c3afa29f60b
parent9e70ed513211b0560a6562a06bac62813a44c04f (diff)
set dependencies and get_dependencies on ApplyMovementData for asm dumping
original-commit-id: 4b1540623a9043bc7edc1c94a7663565e13d7bd9
-rw-r--r--crystal.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/crystal.py b/crystal.py
index e6f664f..bb7576e 100644
--- a/crystal.py
+++ b/crystal.py
@@ -2004,6 +2004,7 @@ class ApplyMovementData:
self.map_id = map_id
self.debug = debug
self.force = force
+ self.dependencies = []
if not label:
label = self.base_label + hex(address)
@@ -2104,6 +2105,10 @@ class ApplyMovementData:
asm_output = "\n".join([command.to_asm() for command in self.commands])
return asm_output
+ # TODO: get_dependencies doesn't work if ApplyMovementData uses labels in the future
+ def get_dependencies(self, recompute=False, global_dependencies=set()):
+ return []
+
class TextCommand(Command):
# an individual text command will not end it
end = False