Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text
- .globl __start
- __start:
- li $t6,0x12345678 #t2 will hold the contents of little-endian
- srl $t0,$t6,24
- li $t5,0xff0000
- and $t1,$t6,$t5
- srl $t1,$t1,8
- and $t2,$t6,0xff00
- sll $t2,$t2,8
- and $t3,$t6,0xff
- sll $t3,$t3,24
- or $t4,$t0,$t1
- or $t5,$t2,$t3
- or $t7,$t4,$t5
- li $v0,10
- syscall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement