Advertisement
Guest User

Untitled

a guest
Jan 29th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. li $t1 0x0000000000000000
  2. srl $t2, $s1, 6 # getsthe bottom bits out
  3. sll $t3, $s1, 26 # gets top bits out
  4. srl $t3, $t3, 26 # puts them back to the bottom bits
  5. li $t4, 6 # loads binary 110
  6. or $s2, $t1, $t4 # ors to 0000000000000110
  7. sll $s2, $s2, 5 # shifts to 0000000011000000
  8. or $s2, $s2, $t2 # ors to 00000000110aaaaa
  9. sll $s2, $s2, 2 # shifts to 00000011oaaaaa00
  10. li $t4, 2 # loads in 10
  11. or $s2, $s2, $t4 # ors to 000000110aaaaa10
  12. sll $s2, $s2, 6 # shifts to 110aaaaa10000000
  13. or $s2, $s2, $t3 #ors to 110aaaaa10bbbbbb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement