better asm output for SignpostRemoteItem

original-commit-id: bde4f489df7dd6039f880811d9b10bdaa02d3b06
This commit is contained in:
Bryan Bishop 2012-05-14 00:58:11 -05:00
parent 11442b84eb
commit f50df4df67

View File

@ -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