Advertisement
Matiasdlsr
Sep 24th, 2023
22
0
Never
This is comment for paste b27
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #littlefix
  2. .data
  3.     pal1: .word -1
  4.     pal2: .word 2
  5. .text
  6.     la a1,pal1
  7.     la a2,pal2
  8.    
  9.     jal x1, swap
  10.  
  11.  
  12.    
  13. swap:
  14.     lw t1,0(a1)
  15.     lw t2,0(a2)
  16.  
  17.     sw t1,0(a2)
  18.     sw t2,0(a1)
  19.  
  20.     lw a0,0(a2)
  21.     li a7,1
  22.     ecall
  23.    
  24.     lw a0,0(a1)
  25.     li a7,1
  26.     ecall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement