summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-04-26 14:30:30 -0500
committerBryan Bishop <kanzure@gmail.com>2012-04-26 14:30:30 -0500
commit28a40fac1e9006d7439339772650bd80f4ca3e35 (patch)
treec47e10cdfb65ec4f79ee204e8d578ef49e2e7f97
parent712b7a57ac4225b4b9eebb144d636f7d85c0bcae (diff)
revert PeopleEvent to use better-looking asm output
original-commit-id: 3c8b381489f074b2223359bd0d11ea8644a35dc7
-rw-r--r--crystal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crystal.py b/crystal.py
index b7c5943..855547f 100644
--- a/crystal.py
+++ b/crystal.py
@@ -2343,7 +2343,7 @@ class PeopleEvent(Command):
10: {"name": "BitTable1 bit number", "class": MultiByteParam},
}
- def to_asm(self):
+ def xto_asm(self):
output = "\n; person-event\n; picture, y, x, facing, movement, clock_hour, clock_daytime, color_function, sight_range\n"
output += "db $%.2x, %d, %d, $%.2x, $%.2x, %d, %d, $%.2x, %d\n" % (self.params[0].byte, self.params[1].byte, self.params[2].byte, self.params[3].byte, self.params[4].byte, self.params[5].byte, self.params[6].byte, self.params[7].byte, self.params[8].byte)
output += "; pointer\ndw %s\n" % (self.params[9].to_asm())