这是我的代码的一部分,我不知道为什么,$t1 总是以 10 结尾,而应该是 16。此时,数据如下:
$t5 = 4
$t3 = 1
$t2 = 0
and $t1 is 0
(and $t0 is an address)
这是代码的一部分:
mul $t1, $t3 , $t5
add $t1, $t1, $t2
mul $t1, $t1, 4
**From here, $t1 should be 16, but it always turns out 10 even if I do li $t1, 16****
add $t1, $t1, $t0
lw $t6, ($t1)
我将 MIPS 32 与 QTSimp 一起使用