I was practicing converting C code into MIPS assembly language, and am having trouble understanding the usage of move
and li
in variable assignment.
For example, to implement the following C line in MIPS:
int x = 0;
If I understand it correctly (I highly doubt this, though), it looks like both of these work in MIPS assembler:
move $s0, $zero
li $s0, $zero
Am I wrong? What is the difference between these two lines?