You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
update to_asm on MapHeader to use the BANK macro
This commit is contained in:
@@ -4760,7 +4760,7 @@ class MapHeader:
|
|||||||
|
|
||||||
def to_asm(self):
|
def to_asm(self):
|
||||||
output = "; bank, tileset, permission\n"
|
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 += "\n\n; second map header\n"
|
||||||
output += "dw " + PointerLabelParam(address=self.address+3).to_asm() #TODO: should we include bank=self.bank.byte ??
|
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"
|
output += "\n\n; location on world map, music, time of day, fishing group\n"
|
||||||
|
Reference in New Issue
Block a user