MIPS组合语言
外观
main:
addi $t0, $s0, 0
addi $t1, $s0, 1
j loop
loop:
add $t0, $t0, $t1
addi $t1, $t1, 1
bne $t1, 26, loop
j exit
exit:
jr $ra
main:
addi $t0, $s0, 0
addi $t1, $s0, 1
j loop
loop:
add $t0, $t0, $t1
addi $t1, $t1, 1
bne $t1, 26, loop
j exit
exit:
jr $ra