我有这个 Spim 代码,还有 Scale i,这是什么意思?
.Data
a: .word -2,35,-8,12-3,-62,-41
n: .word 7
endl: .asciiz "\n"
.text
main:
li $t0, 0 #i
li $t1, 0 #Npos
li $t1, 0 #Nneg
lw $s0, n # $s0 = n
Start:
bge $t0, $s1, Finish
mul $t3, $t0, 4 **#scale i**
lw $4, a($t3) # load a[i] into $t4