Advertisement
bibou261

Shiny prevention routine on 4th gen

Oct 24th, 2011
486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;Adresses relatives à : 0x0242FB4 (D/P US), 0x0204BAFC (Pl US), 0x02045B88 (D/P J) 0x0204B3D8 (Pl JAP), 0x0204BAD4 (HGSS Jap), 0x0243024 (D/P FR), 0x0204BBA0 (Pl FR), 0x204C040 (HG/SS FR & US)
  2. 0   FXXXXXXX    bl  .arng       ; dépend de la version. Appelle la fonction de l'ARNG
  3. 4   1C06        mov r1,r0       ; r1 = resultat ARNG, correspondant au PID généré
  4. ... ... ... ...
  5. 14  FXXXXXXX    bl  .shiny_check    ; la fonction du shiny check renvoie 1 (sur r0) si le Pkm est shiny, sinon 0
  6. 18  2800        cmp r0,#0       ; compare la valeur de renvoi du shiny check à 0
  7. 1A  D00B        beq #0x34       ; va à 0x34 (adresse RELATIVE!) si le Pkm n'est PAS shiny
  8. ---------------
  9. 1C  980D        ldr r0,[sp,#0x34]   ; Début de la boucle "anti PID shiny" on recharge le PID shiny à r0 (0x34 = non relatif)
  10. 1E  FXXXXXXX    bl  .arng       ; on  refait l'ARNG à partir du PID existant
  11. 22  1C01        mov r1,r0       ; afin que le Pkm ne soit plus shiny
  12. ... ... ... ...
  13. 28  FXXXXXXX    bl  .shiny_check    ; le PID rend-t-il encore le Pkm shiny ?
  14. 2C  2800        cmp r0,#0       ; comparons ...
  15. 2E  D1F5        bne #0x1C       ; (ADRESSE RELATIVE !) Tant que le Pkm est shiny, on refait la boucle "anti PID shiny"
  16. ---------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement