Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- success:
- add $s3, $s0, $zero #store old first number here
- add $s4, $s1, $zero #store old second number here
- multloop:
- beq $s1, $zero, results
- and $t2, $s1, 1
- beq $t2, $zero, test
- add $s2, $s3, $s2 #tack on s3
- test:
- sll $s0, $s0, 1
- srl $s1, $s1, 1
- j multloop
- results:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement