Guest User

Untitled

a guest
Mar 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. prepend: #
  2.  
  3. or $t1, $0, $a1 #a1 is the argument which contains the address
  4. or $t0, $0, $a0 #a0 is the argument which contains the element to put in
  5.  
  6.  
  7. ori $a0 $0 8 # Get the 8 bytes
  8. ori $v0 $0 9 #
  9. syscall
  10.  
  11. sw $t0, 0($v0) #now I store the value of element in t0 to new memory v0 by offset 0
  12. sw $t1, 4($v0) #store the address contain in t1 to v0
  13.  
  14. jr $ra
Add Comment
Please, Sign In to add comment