Advertisement
Terrys

askisi 2.2

Apr 21st, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. .text
  2. .globl __start
  3. __start:
  4.  
  5. li $t6,0x12345678 #t2 will hold the contents of little-endian
  6. srl $t0,$t6,24
  7. li $t5,0xff0000
  8. and $t1,$t6,$t5
  9. srl $t1,$t1,8
  10. and $t2,$t6,0xff00
  11. sll $t2,$t2,8
  12. and $t3,$t6,0xff
  13. sll $t3,$t3,24
  14. or $t4,$t0,$t1
  15. or $t5,$t2,$t3
  16. or $t7,$t4,$t5
  17. li $v0,10
  18. syscall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement