Advertisement
math230

load 4 bytes using LW

Jul 20th, 2020
2,509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # address for LW must be mult of 4
  2. # load 4 bytes in, must start at a word boundary
  3. .data
  4.     .space 1                #0x10010000
  5. A:  .byte  1,2,3,4,5,6,7  
  6.  
  7.  
  8. .text
  9.     la $t1,A
  10.     lw $t2, 3($t1)      #load 4 bytes in, must start at a word boundary
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement