summaryrefslogtreecommitdiff
path: root/extras/crystal.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-05-14 00:58:11 -0500
committerBryan Bishop <kanzure@gmail.com>2012-05-14 00:58:11 -0500
commitbde4f489df7dd6039f880811d9b10bdaa02d3b06 (patch)
tree2fb58c384fe06150909030f5f248dc91e64c55dd /extras/crystal.py
parentf43de05607d2e65bc20ea571b7ce5cfb61a300bd (diff)
better asm output for SignpostRemoteItem
Diffstat (limited to 'extras/crystal.py')
-rw-r--r--extras/crystal.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/extras/crystal.py b/extras/crystal.py
index 323e16356..0a8539b8f 100644
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -3647,7 +3647,14 @@ class SignpostRemoteBase:
def to_asm(self):
"""very similar to Command.to_asm"""
if len(self.params) == 0: return ""
- output = ", ".join([p.to_asm() for p in self.params])
+ #output = ", ".join([p.to_asm() for p in self.params])
+ output = ""
+ for param in self.params:
+ if issubclass(param.__class__, SingleByteParam):
+ output += "db "
+ else:
+ output += "dw "
+ output += param.to_asm() + "\n"
return output