From be34aed58e24303a9d8dee6cf36009cbc2653568 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Tue, 17 Jan 2012 14:54:06 -0600 Subject: fix some offset errors in insert_texts.py hg-commit-id: b131d049ecd3 --- extras/analyze_texts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'extras/analyze_texts.py') 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) -- cgit v1.3.1-sl0p