From b6d32d9022e43f56dc2797cac4879f61542f3b9e Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Tue, 10 Jan 2012 12:06:32 -0600 Subject: fix gbz80disasm pretty printer for non-08 scripts hg-commit-id: 6f16741dc45f --- extras/gbz80disasm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'extras/gbz80disasm.py') diff --git a/extras/gbz80disasm.py b/extras/gbz80disasm.py index 95258bf8..d0093436 100644 --- a/extras/gbz80disasm.py +++ b/extras/gbz80disasm.py @@ -548,6 +548,7 @@ asm_commands = { "3927": "AddPokemonToParty", "3e48": "GivePokemon", "3dd7": "Delay3", + "3e2e": "GiveItem", } def random_asm_label(): @@ -729,7 +730,9 @@ def text_asm_pretty_printer(label, address_of_08, include_08=True): output = label + ": ; " + hex(address_of_08) + "\n" if include_08: output += spacing + "db $08 ; asm\n" - results = output_bank_opcodes(address_of_08 + 1) + results = output_bank_opcodes(address_of_08 + 1) + else: + results = output_bank_opcodes(address_of_08) output += results[0] end_address = results[1] -- cgit v1.2.3