diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-01-17 14:54:06 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-01-17 14:54:06 -0600 |
commit | be34aed58e24303a9d8dee6cf36009cbc2653568 (patch) | |
tree | f57412dd4bfa4a9ca52c49f6f5fbfee5a028185e /extras/analyze_texts.py | |
parent | e5f9d4a1444d7a5dcb755ab1304b9be3ee4db6ed (diff) |
fix some offset errors in insert_texts.py
hg-commit-id: b131d049ecd3
Diffstat (limited to 'extras/analyze_texts.py')
-rw-r--r-- | extras/analyze_texts.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extras/analyze_texts.py b/extras/analyze_texts.py index 3e288dd0..b843581e 100644 --- a/extras/analyze_texts.py +++ b/extras/analyze_texts.py @@ -496,6 +496,7 @@ def text_pretty_printer_at(start_address, label="SomeLabel"): if first and needs_to_begin_with_0: output += "$0, " first = False + byte_count += 1 quotes_open = False first_byte = True @@ -550,7 +551,7 @@ def text_pretty_printer_at(start_address, label="SomeLabel"): include_newline = "\n" if output[-1] == "\n": include_newline = "" - output += include_newline + "; " + hex(start_address + byte_count + 1) + output += include_newline + "; " + hex(start_address) + " + " + str(byte_count) + " bytes" print output return (output, byte_count) |