diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-01-17 15:39:36 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-01-17 15:39:36 -0600 |
commit | ffdd92db777e410a0c365f7b301f0a5a5bdc56ca (patch) | |
tree | c6ebcd3f17d75325210d023597f81cf932a66720 /extras/insert_texts.py | |
parent | a6f495e25ee25453be690c31f0317e32751ac378 (diff) |
skip some incbins from analyze_texts for 0-size intervals
hg-commit-id: a63d92b4534c
Diffstat (limited to 'extras/insert_texts.py')
-rw-r--r-- | extras/insert_texts.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/extras/insert_texts.py b/extras/insert_texts.py index 53ff4841..d358db97 100644 --- a/extras/insert_texts.py +++ b/extras/insert_texts.py @@ -418,6 +418,12 @@ def insert_text(address, label, apply=False, try_fixing=True): print "skipping text at " + hex(start_address) + " with address " + label return "skip" + #another reason to skip is if the interval is 0 + processed_incbin = analyze_incbins.processed_incbins[line_number] + if processed_incbin["interval"] == 0: + print "skipping text at " + hex(start_address) + " with address " + label + " because the interval is 0" + return "skip" + text_asm, byte_count = text_pretty_printer_at(start_address, label) end_address = start_address + byte_count newlines = split_incbin_line_into_three(line_number, start_address, byte_count) @@ -612,7 +618,7 @@ def scan_rom_for_tx_fars_and_insert(): for address_bundle in address_bundles: tx_far_address = address_bundle[1] tx_far_target_address = address_bundle[0] - if tx_far_address < 0x6150f: continue + #if tx_far_address < 0x7627b: continue #because it stopped a few times for errors tx_far_label = "UnnamedText_%.2x" % (tx_far_address) tx_far_target_label = "_" + tx_far_label |