From 4c59064f9f65eabbf72c247d78d5607ce1b5409f Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Tue, 10 Jan 2012 01:18:18 -0600 Subject: insert_asm in insert_texts for function asm hg-commit-id: dc34a93f0f47 --- extras/gbz80disasm.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'extras/gbz80disasm.py') diff --git a/extras/gbz80disasm.py b/extras/gbz80disasm.py index 43e93715..c9f9602e 100644 --- a/extras/gbz80disasm.py +++ b/extras/gbz80disasm.py @@ -694,10 +694,11 @@ def output_bank_opcodes(original_offset, max_byte_count=0x4000): return (output.lower(), offset) -def text_asm_pretty_printer(label, address_of_08): +def text_asm_pretty_printer(label, address_of_08, include_08=True): """returns (output, end_address)""" output = label + ": ; " + hex(address_of_08) + "\n" - output += spacing + "db $08 ; asm\n" + if include_08: + output += spacing + "db $08 ; asm\n" results = output_bank_opcodes(address_of_08 + 1) output += results[0] end_address = results[1] @@ -711,4 +712,4 @@ if __name__ == "__main__": #0x18f96 is PalletTownText1 #0x19B5D is BluesHouseText1 - print output_bank_opcodes(0x3748)[0] + print output_bank_opcodes(0x3e48)[0] -- cgit v1.2.3