From a9b0eb4d87410f453c2135092ef2f810845b746a Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Mon, 28 May 2012 09:51:49 -0500 Subject: [PATCH] update to_asm on MapHeader to use the BANK macro --- extras/crystal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/crystal.py b/extras/crystal.py index 52375bdc4..0230c2f93 100644 --- a/extras/crystal.py +++ b/extras/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"