mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
fix gbz80disasm pretty printer for non-08 scripts
hg-commit-id: 6f16741dc45f
This commit is contained in:
parent
71a840c3c3
commit
b6d32d9022
|
@ -548,6 +548,7 @@ asm_commands = {
|
|||
"3927": "AddPokemonToParty",
|
||||
"3e48": "GivePokemon",
|
||||
"3dd7": "Delay3",
|
||||
"3e2e": "GiveItem",
|
||||
}
|
||||
|
||||
def random_asm_label():
|
||||
|
@ -730,6 +731,8 @@ def text_asm_pretty_printer(label, address_of_08, include_08=True):
|
|||
if include_08:
|
||||
output += spacing + "db $08 ; asm\n"
|
||||
results = output_bank_opcodes(address_of_08 + 1)
|
||||
else:
|
||||
results = output_bank_opcodes(address_of_08)
|
||||
output += results[0]
|
||||
end_address = results[1]
|
||||
|
||||
|
|
|
@ -424,7 +424,7 @@ if __name__ == "__main__":
|
|||
#insert_08_asm(83, 1)
|
||||
#insert_all_08s()
|
||||
|
||||
insert_asm(0x3927, "AddPokemonToParty")
|
||||
insert_asm(0x31cc, "LoadTrainerHeader")
|
||||
|
||||
print "-- FAILED ATTEMPTS --"
|
||||
print str(failed_attempts)
|
||||
|
|
Loading…
Reference in a new issue