Why the RISC instruction sets usually do not contain register to register copy instruction?

依然范特西╮ 提交于 2021-01-27 19:09:17

问题


I had this question on my exam and i am confused because as far as i know that

move $t0, $a0               # COPY $A0 TO $T0

in MIPS instruction provides that and MIPS is a RISC processor. Am I missing something?


回答1:


Move is a pseudoinstruction, and when assembled will really be a different instruction.

For instance

move $t0, $zero gets implemented as addu $t0, $zero, $zero



来源:https://stackoverflow.com/questions/53286335/why-the-risc-instruction-sets-usually-do-not-contain-register-to-register-copy-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!