diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-05-14 00:58:11 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-05-14 00:58:11 -0500 |
commit | f50df4df672e5984ea15cc37da4f40e598c9fb2d (patch) | |
tree | 0137e64eae0bfdf3d45e08b7690ad87b3b4fe8c7 | |
parent | 11442b84eb9e573dd19b2176bf9f51a53e51a5a1 (diff) |
better asm output for SignpostRemoteItem
original-commit-id: bde4f489df7dd6039f880811d9b10bdaa02d3b06
-rw-r--r-- | crystal.py | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |