ref: 253c897bbd4198632a0d789800c9cd44f861d4c2
parent: 4462b9b2461c1bec27b88b872bda08a0972228c4
author: Bryan Bishop <[email protected]>
date: Fri Mar 23 19:36:39 EDT 2012
rom_text_at just dumps text straight from the ROM
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -569,6 +569,11 @@
see parse_text_at2 for pretty printing"""
return parse_text_from_bytes(rom_interval(address, count, strings=False))
+def rom_text_at(address, count=10):
+ """prints out raw text from the ROM
+ like for 0x112110"""
+ return "".join([chr(x) for x in rom_interval(address, count, strings=False)])
+
def parse_text_at2(address, count=10):
"""returns a string of text from an address
this does not handle text commands"""
@@ -702,6 +707,8 @@
global rom, text_count, max_texts, texts
if rom == None:
load_rom()
+ if address == None:
+ return "not a script"
commands = {}
total_text_commands = 0