diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-01-10 01:18:18 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-01-10 01:18:18 -0600 |
commit | 4c59064f9f65eabbf72c247d78d5607ce1b5409f (patch) | |
tree | ac92fcadf5f0521ae851ffaca81b1b0875aed859 /extras/gbz80disasm.py | |
parent | 983b87069d1037bb4ad4eedb2ef769c398e0d084 (diff) |
insert_asm in insert_texts for function asm
hg-commit-id: dc34a93f0f47
Diffstat (limited to 'extras/gbz80disasm.py')
-rw-r--r-- | extras/gbz80disasm.py | 7 |
1 files changed, 4 insertions, 3 deletions
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] |