The move instruction is used to copy the value from one register to another. It’s a pseudo-instruction, meaning it doesn’t actually exist in the MIPS instruction set. Instead, the assembler translates it into a add instruction with $zero as one of the operands.
Syntax
move $t, $s
Here, $t is the target register and $s is the source register. The value in $s is copied to $t.
The move instruction performs the following steps:
It fetches the value from the source register $s.
It stores the fetched value into the target register $t.
Example:
move $t1, $t4
move $t1, $t4 copies the value stored in the register $t4 into the register $t1
Note
The move instruction is translated by the assembler into the following add instruction:
add $t1, $t4, $zero
This add instruction adds the value in $t4 and $zero (which is always 0), and stores the result in $t1, effectively copying the value from $t4 to $t1.