Difference between adding 0 and moving a register in MIPS

前端 未结 1 1650
旧时难觅i
旧时难觅i 2021-01-27 21:39

What\'s the difference between:

add     rd, rs, zero

and

move    rd, rs

They both look like they should do th

相关标签:
1条回答
  • 2021-01-27 22:05

    The move is a pseudoinstruction, they do the same job. MIPS is a reduced instruction set computer (RISC), so the instruction size and hardware complexity are minimized by keeping the number of instructions small. However, MIPS defines pseudoinstructions that are not actually part of the instruction set but are commonly used by programmers and compilers.

    0 讨论(0)
提交回复
热议问题