Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prepend: #
- or $t1, $0, $a1 #a1 is the argument which contains the address
- or $t0, $0, $a0 #a0 is the argument which contains the element to put in
- ori $a0 $0 8 # Get the 8 bytes
- ori $v0 $0 9 #
- syscall
- sw $t0, 0($v0) #now I store the value of element in t0 to new memory v0 by offset 0
- sw $t1, 4($v0) #store the address contain in t1 to v0
- jr $ra
Add Comment
Please, Sign In to add comment