Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下 MIPS 程序集,在MARS模拟器上运行,如下所示:
.data x: .space 4 # 4 bytes = 32 bits li $v0, 6 syscall
此时,我需要的浮点值在$f0,但我需要将值移动到x。如果我可以将浮点寄存器的内容传输$f0到$t0,我将能够做到这一点。这可能吗?如果没有,解决方法是什么?
$f0
x
$t0
您想要“单精度存储”伪指令。$f0我认为这个应该坚持任何 32 位x。
s.s $f0, x
我刚去下载了 MARS 并进行了测试,在这里可以正常工作。