Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. BottomLevel:
  2.  
  3. /*r5 = foe’s level*/
  4. /*r6 = your level*/
  5. /*This add your level to the opponent’s level*/
  6. /*Then adds ten to that sum*/
  7. /*multiplies by itself to square it*/
  8.  
  9. add r5, r5, r6
  10. add r5, r5, r2
  11. mul r5, r5
  12.  
  13. DivideAgain:
  14.  
  15. /*r1 = (2L+10)^2*/
  16. /*r5 = (L+Lp+10)^2*/
  17. /*r6 = (B x L) / 5*/
  18. /*Stores answer to r0*/
  19. /*Then moves answer to r2*/
  20.  
  21. mov r0, r1
  22. mov r1, r5
  23. mov r6, r3 /*move BL/5 to r6*/
  24. mov r3, #0x64 /*multiply top by 100*/
  25. mul r0, r3
  26. bl Divide /*Divide top by bottom*/
  27. mov r2, r0
  28.  
  29. DivideSomeMore:
  30.  
  31. /*r6 = BL/5*/
  32. /*r2 = Level Ratio*/
  33. /*Multiplies the 2nd term by 100*/
  34. /*Then divides whole thing by 100*/
  35.  
  36. mul r6, r2 /*multiply BL/5 by (100*2ndTerm)*/
  37. mov r0, r6
  38. mov r1, #0xFA
  39. bl Divide /*Divides (BL/5)*(100*2ndTerm) by 100*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement