mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
Add generate_sys.py.
This commit is contained in:
parent
213e60f807
commit
2efa3ebe1f
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -25,6 +25,9 @@ baserom.sav
|
||||||
pokered.sgm
|
pokered.sgm
|
||||||
pokered.sav
|
pokered.sav
|
||||||
|
|
||||||
|
baserom.sys
|
||||||
|
pokered.sys
|
||||||
|
|
||||||
# for vim configuration
|
# for vim configuration
|
||||||
# url: http://www.vim.org/scripts/script.php?script_id=441
|
# url: http://www.vim.org/scripts/script.php?script_id=441
|
||||||
.lvimrc
|
.lvimrc
|
||||||
|
|
8
extras/generate_sys.py
Normal file
8
extras/generate_sys.py
Normal file
|
@ -0,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']))
|
Loading…
Reference in a new issue