mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-09-25 19:00:04 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user