mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
finish bank $22 with texts
hg-commit-id: 5ad22b1fd1b8
This commit is contained in:
parent
8cbb6b6977
commit
23fbb3b65d
2 changed files with 171 additions and 49 deletions
|
|
@ -401,6 +401,7 @@ def text_pretty_printer_at(start_address, label="SomeLabel"):
|
|||
#start with zero please
|
||||
byte_count = 0
|
||||
|
||||
output = ""
|
||||
had_text_end_byte = False
|
||||
had_text_end_byte_57_58 = False
|
||||
had_db_last = False
|
||||
|
|
@ -549,7 +550,7 @@ def text_pretty_printer_at(start_address, label="SomeLabel"):
|
|||
|
||||
output += "\n"
|
||||
include_newline = "\n"
|
||||
if output[-1] == "\n":
|
||||
if len(output)!=0 and output[-1] == "\n":
|
||||
include_newline = ""
|
||||
output += include_newline + "; " + hex(start_address) + " + " + str(byte_count) + " bytes = " + hex(start_address + byte_count)
|
||||
print output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue