Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- li $t1 0x0000000000000000
- srl $t2, $s1, 6 # getsthe bottom bits out
- sll $t3, $s1, 26 # gets top bits out
- srl $t3, $t3, 26 # puts them back to the bottom bits
- li $t4, 6 # loads binary 110
- or $s2, $t1, $t4 # ors to 0000000000000110
- sll $s2, $s2, 5 # shifts to 0000000011000000
- or $s2, $s2, $t2 # ors to 00000000110aaaaa
- sll $s2, $s2, 2 # shifts to 00000011oaaaaa00
- li $t4, 2 # loads in 10
- or $s2, $s2, $t4 # ors to 000000110aaaaa10
- sll $s2, $s2, 6 # shifts to 110aaaaa10000000
- or $s2, $s2, $t3 #ors to 110aaaaa10bbbbbb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement