From f50df4df672e5984ea15cc37da4f40e598c9fb2d Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Mon, 14 May 2012 00:58:11 -0500 Subject: better asm output for SignpostRemoteItem original-commit-id: bde4f489df7dd6039f880811d9b10bdaa02d3b06 --- crystal.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crystal.py b/crystal.py index 323e163..0a8539b 100644 --- a/crystal.py +++ b/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 -- cgit v1.2.3