Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- pal1: .word -1
- pal2: .word 2
- .text
- la a0,pal1
- la a1,pal2
- jal x1, swap
- fin:
- beq x0,x0,fin
- swap:
- lw a2,0(a0)
- lw a3,0(a1)
- sw a3,0(a0)
- sw a2,0(a1)
- volver:
- ret
Advertisement
Comments
-
- #littlefix
- .data
- pal1: .word -1
- pal2: .word 2
- .text
- la a1,pal1
- la a2,pal2
- jal x1, swap
- swap:
- lw t1,0(a1)
- lw t2,0(a2)
- sw t1,0(a2)
- sw t2,0(a1)
- lw a0,0(a2)
- li a7,1
- ecall
- lw a0,0(a1)
- li a7,1
- ecall
Add Comment
Please, Sign In to add comment
Advertisement