Advertisement
math230

MIPS LW and SW Demo

Jul 20th, 2020
4,194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MPASM 0.16 KB | None | 0 0
  1. #Load a word, store it into adjacent word
  2. .data
  3.  
  4. A:  .word  4,7,3,2,1,1,3,5,6,15  # int A[] = {}
  5.  
  6. .text
  7.     la $a0,A
  8.     lw $t4, 0($a0)  
  9.     sw $t4, 4($a0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement