From aff76027a0aa8ec4cd3f4a392af8103063630be3 Mon Sep 17 00:00:00 2001 From: yenatch Date: Tue, 28 Oct 2014 21:49:21 -0700 Subject: Fix the output of PointerLabelParam.to_asm. Accidentally forgot to zfill either half of pointer_part, which would return malformed addresses. Fixes de39f7c6ff487f02d1914cc4a3260817287207c5. --- pokemontools/crystal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemontools/crystal.py b/pokemontools/crystal.py index 9d0fa5b..610f4f7 100644 --- a/pokemontools/crystal.py +++ b/pokemontools/crystal.py @@ -913,7 +913,7 @@ class PointerLabelParam(MultiByteParam): lo, hi = self.bytes[1:3] else: lo, hi = self.bytes[0:2] - pointer_part = "{0}{1:2x}{2:2x}".format(self.prefix, hi, lo) + pointer_part = "{0}{1:02x}{2:02x}".format(self.prefix, hi, lo) # bank positioning matters! if bank == True or bank == "reverse": # bank, pointer -- cgit v1.2.3