Conflicts:
	main.asm
This commit is contained in:
IIMarckus 2013-05-13 01:07:13 -06:00
commit 7d458509d3
4 changed files with 400 additions and 293 deletions

3
.gitignore vendored
View file

@ -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

View file

@ -203,6 +203,7 @@ W_RLEBYTECOUNTER EQU $CCD2
W_PLAYERSUBSITUTEHP EQU $CCD7 W_PLAYERSUBSITUTEHP EQU $CCD7
W_ENEMYSUBSITUTEHP EQU $CCD8 W_ENEMYSUBSITUTEHP EQU $CCD8
W_MOVEMENUTYPE EQU $CCDB ; 0=regular, 1=mimic, 2=above message box (relearn, heal pp..)
W_PLAYERSELECTEDMOVE EQU $CCDC W_PLAYERSELECTEDMOVE EQU $CCDC
W_ENEMYSELECTEDMOVE EQU $CCDD W_ENEMYSELECTEDMOVE EQU $CCDD
@ -356,6 +357,7 @@ W_BATTLETYPE EQU $D05A ; in normal battle, this is 0
; in safari battle, this is 2 ; in safari battle, this is 2
W_LONEATTACKNO EQU $D05C ; which entry in LoneAttacks to use W_LONEATTACKNO EQU $D05C ; which entry in LoneAttacks to use
W_GYMLEADERNO EQU $D05C ; it's actually the same thing as ^
W_TRAINERNO EQU $D05D ; which instance of [youngster, lass, etc] is this? W_TRAINERNO EQU $D05D ; which instance of [youngster, lass, etc] is this?
W_MOVEMISSED EQU $D05F W_MOVEMISSED EQU $D05F

8
extras/generate_sys.py Normal file
View 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']))

680
main.asm

File diff suppressed because it is too large Load diff