Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. success:
  2.  
  3. add $s3, $s0, $zero #store old first number here
  4. add $s4, $s1, $zero #store old second number here
  5.  
  6. multloop:
  7. beq $s1, $zero, results
  8. and $t2, $s1, 1
  9. beq $t2, $zero, test
  10. add $s2, $s3, $s2 #tack on s3
  11. test:
  12. sll $s0, $s0, 1
  13. srl $s1, $s1, 1
  14. j multloop
  15.  
  16. results:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement