ref: ffdd92db777e410a0c365f7b301f0a5a5bdc56ca
parent: a6f495e25ee25453be690c31f0317e32751ac378
author: Bryan Bishop <kanzure@gmail.com>
date: Tue Jan 17 10:39:36 EST 2012
skip some incbins from analyze_texts for 0-size intervals hg-commit-id: a63d92b4534c
--- a/extras/analyze_texts.py
+++ b/extras/analyze_texts.py
@@ -616,6 +616,7 @@
incbin = analyze_incbins.processed_incbins[incbin_line_number]
start_address = incbin["start"]
end_address = incbin["end"]
+ if incbin["interval"] == 0: continue #skip this one
subrom = rom[start_address:end_address]
for address in range(start_address, end_address):
--- a/extras/insert_texts.py
+++ b/extras/insert_texts.py
@@ -418,6 +418,12 @@
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 @@
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