Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BottomLevel:
- /*r5 = foe’s level*/
- /*r6 = your level*/
- /*This add your level to the opponent’s level*/
- /*Then adds ten to that sum*/
- /*multiplies by itself to square it*/
- add r5, r5, r6
- add r5, r5, r2
- mul r5, r5
- DivideAgain:
- /*r1 = (2L+10)^2*/
- /*r5 = (L+Lp+10)^2*/
- /*r6 = (B x L) / 5*/
- /*Stores answer to r0*/
- /*Then moves answer to r2*/
- mov r0, r1
- mov r1, r5
- mov r6, r3 /*move BL/5 to r6*/
- mov r3, #0x64 /*multiply top by 100*/
- mul r0, r3
- bl Divide /*Divide top by bottom*/
- mov r2, r0
- DivideSomeMore:
- /*r6 = BL/5*/
- /*r2 = Level Ratio*/
- /*Multiplies the 2nd term by 100*/
- /*Then divides whole thing by 100*/
- mul r6, r2 /*multiply BL/5 by (100*2ndTerm)*/
- mov r0, r6
- mov r1, #0xFA
- bl Divide /*Divides (BL/5)*(100*2ndTerm) by 100*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement