shithub: pokered

Download patch

ref: b48dfcd123921fbd047a5af274eeba15a8bbbd2b
parent: ffdd92db777e410a0c365f7b301f0a5a5bdc56ca
author: Bryan Bishop <kanzure@gmail.com>
date: Tue Jan 17 11:16:27 EST 2012

fix TX_RAM injector for addresses between $a-$f inclusive

hg-commit-id: 82f2343a6d11


--- a/extras/analyze_texts.py
+++ b/extras/analyze_texts.py
@@ -421,7 +421,7 @@
                 p2 = command["pointer"][1]
 
                 #remember to account for big endian -> little endian
-                output += "\n" + spacing + "TX_RAM $" + hex(p2)[2:] + hex(p1)[2:]
+                output += "\n" + spacing + "TX_RAM $%.2x%.2x" %(p2, p1) 
                 byte_count += 3
                 had_db_last = False
             elif command["type"] == 0x17: #TX_FAR