Fix the output of PointerLabelParam.to_asm.

Accidentally forgot to zfill either half of pointer_part, which would return malformed addresses.

Fixes de39f7c6ff.
This commit is contained in:
yenatch
2014-10-28 21:49:21 -07:00
parent 4d9fd56593
commit aff76027a0

View File

@@ -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