У меня есть следующая программа:
.data
newline: .asciiz"\n" # print new line
output: .asciiz"The calculated an for initial value " #print the
sentence
x: .word 5, 1, 500, 225 #array declaration
z: .word 2555 #limit
.text
.globl main
main:
addi $t0, $zero, 6 #number of value that is needed to be calculated
addi $t1, $zero, 0 #i
lw $t7, z #limit defined by user
la $t6, x # to load the respective array to the register
lw $s1, 0($t6)
lw $s2, 4($t6)
lw $s3, 8($t6)
lw $s4, 12($t6)
lw $s5, 16($t6)
lw $s6, 20($t6)
addi $sp, $sp, -24 # place the respective array to the stack
sw $s1, 0($sp)
sw $s2, 4($sp)
sw $s3, 8($sp)
sw $s4, 12($sp)
sw $s5, 16($sp)
sw $s6, 20($sp)
Есть ли у меня какой-либо другой вариант для загрузки соответствующего массива в регистры вместо загрузки регистров один за другим?