ref: 2efa3ebe1fa7901990d66950827796f4bef7e36f
parent: 213e60f8073e0d890d33757de217df6c8793499b
author: Sanky <gsanky@gmail.com>
date: Fri Dec 21 14:49:56 EST 2012
Add generate_sys.py.
--- a/.gitignore
+++ b/.gitignore
@@ -25,6 +25,9 @@
pokered.sgm
pokered.sav
+baserom.sys
+pokered.sys
+
# for vim configuration
# url: http://www.vim.org/scripts/script.php?script_id=441
.lvimrc
--- /dev/null
+++ b/extras/generate_sys.py
@@ -1,0 +1,8 @@
+import json
+
+import analyze_incbins
+analyze_incbins.scan_for_predefined_labels()
+
+with open('../pokered.sym', 'w') as sym:
+ for label in json.load(open('labels.json')):
+ sym.write('{0:x}:{1} {2}\n'.format(label['bank_id'], label['local_pointer'][1:], label['label']))