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.
使用 SPIM 这条指令是否正确?
添加 $t1,$zero,-1
运行程序后,$t1 由“ffffffff”填充
你想要addi而不是add
addi
add
addi $t1, $zero, -1
该addi指令对 16 位立即数进行符号扩展,因此它应该0xffffffff放在$t1.
0xffffffff
$t1