summaryrefslogtreecommitdiff
path: root/extras/parse_consecutive_strings.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-08-27 11:18:30 -0500
committerBryan Bishop <kanzure@gmail.com>2013-08-27 11:18:30 -0500
commitddc4a929058ff103cac5743ca39bb8e4b520ee90 (patch)
tree9d986f9685c4c898e80aab898d199f5b72f9977b /extras/parse_consecutive_strings.py
parentc61b3d42ad4e88b32e9c321b7fcc559ec0220e64 (diff)
parent94f5f61265b9654925b66dca7c3256668435eeea (diff)
Merge pull request #161 from kanzure/remove-extras
This merges branch 'remove-extras' into master. The extras/ path is now replaced by a git submodule that is independently version controlled and separate from the pokecrystal project. The git submodule is a reference to v1.1.0 of this repository: https://github.com/kanzure/pokemon-reverse-engineering-tools It's also available as a generic python module now: https://pypi.python.org/pypi/pokemontools https://github.com/kanzure/pokecrystal/pull/161
Diffstat (limited to 'extras/parse_consecutive_strings.py')
m---------extras0
-rw-r--r--extras/parse_consecutive_strings.py25
2 files changed, 0 insertions, 25 deletions
diff --git a/extras b/extras
new file mode 160000
+Subproject 016f0206b5029fc83a6200be29b0f980c76dfd9
diff --git a/extras/parse_consecutive_strings.py b/extras/parse_consecutive_strings.py
deleted file mode 100644
index 4c864ba65..000000000
--- a/extras/parse_consecutive_strings.py
+++ /dev/null
@@ -1,25 +0,0 @@
-import sys
-
-import crystal
-
-rom = crystal.load_rom()
-
-addr = int(sys.argv[1], 16)
-count = int(sys.argv[2]) if len(sys.argv) > 2 else 256
-label_prefix = sys.argv[3] if len(sys.argv) > 3 else "UnknownString"
-
-ex = None
-
-for i in range(count):
- try:
- string = crystal.PokedexText(addr)
- asm = string.to_asm()
- except Exception as ex:
- break
- print label_prefix+str(i)+": ; "+hex(addr)
- print "\t"+asm
- print
- addr = string.last_address
-
-print "; "+hex(addr)
-if ex: raise ex