Advertisement
Guest User

hello.z80

a guest
Sep 8th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include    "ti83plus.inc"
  2. #define     progStart   $BAB0
  3.  
  4. ;program vars
  5. #define     wCF91           $cf91   ;used for lots o' things
  6. #define     OldRod          $4c     ;Old Rod Item Index
  7. #define     cOldRodPoke     $bb20   ;Randomized Old rod Poke
  8. #define     wCurEnemyLVL    $d127  
  9. #define     wCurOpponent    $d059   ;In a wild battle is species of poke
  10.  
  11. #define     wMoveMissed     $d05f   ;If nz before battle starts,
  12.                                     ;will display "hooked mon"
  13.  
  14.  
  15. .org        progStart
  16.  
  17. :OldRodCheck
  18. LD A , ($cf91)
  19. jr nz,NotOld
  20. ld a,(cOldRodPoke)
  21. ld c a
  22. ld b,05     ;Lv5 pkmn
  23. jr cRodResponse
  24.  
  25. :NotOld
  26.  
  27.  
  28.  
  29. :cRodResponse
  30.  
  31. ld a,b
  32. ld (wCurEnemyLVL),a
  33. ld a,c
  34. ld (wCurOpponent),a
  35. ld a,02
  36. ld (wMoveMissed),a
  37. jp end
  38.  
  39. :end
  40. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement