summaryrefslogtreecommitdiff
path: root/crystal.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-05-28 09:51:49 -0500
committerBryan Bishop <kanzure@gmail.com>2012-05-28 09:51:49 -0500
commitac230bdee9ada2ab0fb9ade8a831b9bfb821d2ae (patch)
treed85503981453fca972d09c9111e4bd893058c91d /crystal.py
parent3528fd881ba378b6d7151ff7bffdea4689a0e9c3 (diff)
update to_asm on MapHeader to use the BANK macro
original-commit-id: a9b0eb4d87410f453c2135092ef2f810845b746a
Diffstat (limited to 'crystal.py')
-rw-r--r--crystal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crystal.py b/crystal.py
index 52375bd..0230c2f 100644
--- a/crystal.py
+++ b/crystal.py
@@ -4760,7 +4760,7 @@ class MapHeader:
def to_asm(self):
output = "; bank, tileset, permission\n"
- output += "db " + ", ".join([self.bank.to_asm(), self.tileset.to_asm(), self.permission.to_asm()])
+ output += "db " + ", ".join(["BANK(" + self.second_map_header.label.name + ")", self.tileset.to_asm(), self.permission.to_asm()])
output += "\n\n; second map header\n"
output += "dw " + PointerLabelParam(address=self.address+3).to_asm() #TODO: should we include bank=self.bank.byte ??
output += "\n\n; location on world map, music, time of day, fishing group\n"