Advertisement
Guest User

Untitled

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