In: Computer Science
code:
.text
li $a,0x10010000 //loading a value into memory location
li $b,0x10010004 //loading b value into memory
location
move $t,$a //moving a value to new register
move $a,,$b //swapping a and b value
move $b,$t //swapping a to b
syscall
code screenshot:
output: