What does the following code do?

What does the following code do?



lw $t0, 0($s0)
lw $t1, 4($s0)
sw $t0, 4($s0)
sw $t1, 0($s0)
A. Ensures proper order.
B. Sorts a list of numbers
C. Exchanges two values
D. Swaps values.
E. Performs an atomic exchange.
F. Clears memory
G. Nothing

Answer:


C. Exchanges two values
D. Swaps values.


Learn More :