Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;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)
- 0 FXXXXXXX bl .arng ; dépend de la version. Appelle la fonction de l'ARNG
- 4 1C06 mov r1,r0 ; r1 = resultat ARNG, correspondant au PID généré
- ... ... ... ...
- 14 FXXXXXXX bl .shiny_check ; la fonction du shiny check renvoie 1 (sur r0) si le Pkm est shiny, sinon 0
- 18 2800 cmp r0,#0 ; compare la valeur de renvoi du shiny check à 0
- 1A D00B beq #0x34 ; va à 0x34 (adresse RELATIVE!) si le Pkm n'est PAS shiny
- ---------------
- 1C 980D ldr r0,[sp,#0x34] ; Début de la boucle "anti PID shiny" on recharge le PID shiny à r0 (0x34 = non relatif)
- 1E FXXXXXXX bl .arng ; on refait l'ARNG à partir du PID existant
- 22 1C01 mov r1,r0 ; afin que le Pkm ne soit plus shiny
- ... ... ... ...
- 28 FXXXXXXX bl .shiny_check ; le PID rend-t-il encore le Pkm shiny ?
- 2C 2800 cmp r0,#0 ; comparons ...
- 2E D1F5 bne #0x1C ; (ADRESSE RELATIVE !) Tant que le Pkm est shiny, on refait la boucle "anti PID shiny"
- ---------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement