Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ROM0:156B 3E 3A ld a,3a
- ROM0:156D CD 6D 3E call 3e6d ;bank switching
- ROM0:1570 FA 1E D1 ld a,(d11e) ;current pokemon # processing (04 charmander,01 bulbasaur etc.)
- ROM0:1573 3D dec a ;-1, since it start from 01
- ROM0:1574 01 1C 00 ld bc,001c ;multiplier, $1C bytes per stat table entry
- ROM0:1577 21 DE 43 ld hl,43de ;start of base stat table
- ROM0:157A CD 87 3A call 3a87 ;HL += BC *A
- ROM0:157D 11 B8 D0 ld de,d0b8 ;copy to D0B8
- ROM0:1580 01 1C 00 ld bc,001c ;$1C bytes to copy
- ROM0:1583 CD B5 00 call 00b5 ;copy 001C bytes of base stat data to D0B8
- ;note d11e seems to be used for a bunch of other random things too
- ;so after that you get:
- D0B8: temp data used for base stats (plus other unrelated things?)
- -D0B8: number
- -D0B9: base HP
- -D0BA: base attack
- -D0BB: base defense
- -D0BC: base speed
- -D0BD: base special
- -D0BE: type 1
- -D0BF: type 2
- -D0C0: catch rate
- -D0C1: exp yield
- -D0C2: whatever else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement