Advertisement
PikalaxALT

Untitled

Nov 1st, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FindPokemonInParty:
  2.     ld b, a
  3.     ld hl, PartySpecies
  4.     ld c, 0
  5. .loop
  6.     ld a, [hli]
  7.     cp $ff
  8.     jr z, .done
  9.     cp b
  10.     jr z, .found
  11.     inc c
  12.     jr .loop
  13.  
  14. .done
  15.     xor a
  16.     ret
  17.  
  18. .found
  19.     scf
  20.     ret
  21.  
  22. FindMewInParty:
  23.     ld a, MEW
  24.     call FindPokemonInParty
  25.     ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement