movt mips 指令有什么作用?

What does the movt mips instruction do?

喜欢

movt $t0, $v0, 0

上面的语句是做什么的? 如果您能向我解释一下,那将非常有帮助。我在互联网上搜索过,但找不到任何有用的东西

您应该搜索官方指令集参考(MIPS32™ Architecture For Programmers Volume II: The MIPS32™ Instruction Set)。

MOVT rd, rs, cc

Purpose:
To test an FP condition code then conditionally move a GPR

Description: if cc = 1 then rd ← rs

If the floating point condition code specified by CC is one, then the contents of GPR rs are placed into GPR rd.

Operation:

if FPConditionCode(cc) = 1 then
   GPR[rd] ← GPR[rs]
endif