From 18053c4dd047849faccea31ef880cb8ac51b9684 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sat, 28 Jan 2012 16:22:59 -0600 Subject: use zero-padded values in base stats hg-commit-id: 395f2f7a0015 --- extras/insert_texts.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'extras/insert_texts.py') diff --git a/extras/insert_texts.py b/extras/insert_texts.py index f99f229a..4cadc5c3 100644 --- a/extras/insert_texts.py +++ b/extras/insert_texts.py @@ -769,13 +769,13 @@ def base_data_pretty_printer(id): output += spacing + "\n" + spacing + "; learnset\n" #learnset crap - output += spacing + "db %" + bin(ord(rom[base_address + 20]))[2:] + "\n" - output += spacing + "db %" + bin(ord(rom[base_address + 21]))[2:] + "\n" - output += spacing + "db %" + bin(ord(rom[base_address + 22]))[2:] + "\n" - output += spacing + "db %" + bin(ord(rom[base_address + 23]))[2:] + "\n" - output += spacing + "db %" + bin(ord(rom[base_address + 24]))[2:] + "\n" - output += spacing + "db %" + bin(ord(rom[base_address + 25]))[2:] + "\n" - output += spacing + "db %" + bin(ord(rom[base_address + 26]))[2:] + "\n\n" + output += spacing + "db %" + bin(ord(rom[base_address + 20]))[2:].zfill(8) + "\n" + output += spacing + "db %" + bin(ord(rom[base_address + 21]))[2:].zfill(8) + "\n" + output += spacing + "db %" + bin(ord(rom[base_address + 22]))[2:].zfill(8) + "\n" + output += spacing + "db %" + bin(ord(rom[base_address + 23]))[2:].zfill(8) + "\n" + output += spacing + "db %" + bin(ord(rom[base_address + 24]))[2:].zfill(8) + "\n" + output += spacing + "db %" + bin(ord(rom[base_address + 25]))[2:].zfill(8) + "\n" + output += spacing + "db %" + bin(ord(rom[base_address + 26]))[2:].zfill(8) + "\n\n" output += spacing + "db 0 ; padding\n" -- cgit v1.3.1-sl0p