You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
better asm output for SignpostRemoteItem
This commit is contained in:
@@ -3647,7 +3647,14 @@ class SignpostRemoteBase:
|
|||||||
def to_asm(self):
|
def to_asm(self):
|
||||||
"""very similar to Command.to_asm"""
|
"""very similar to Command.to_asm"""
|
||||||
if len(self.params) == 0: return ""
|
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
|
return output
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user