mips32 を使用して、0 から 10 までの数字をメモリに順番に格納しようとしています。これが私のコードです:
addi $s2, $zero, 10
addi $s1, $zero, 0
addi $t0, $zero, 0
addi $s6, $zero, 10
L1:
beq $s1, $s2, exit
sll $t0, $s1, 2 #multiply by the size of a word to get the cur address of $s6
sw $t0, 0($s6)
addi $s1, $s1, 1
j L1
exit:
sw $t0, 0($s6)
これをメモリの先頭に格納するのは何が問題なのですか?というエラーが発生しました。