An Assembly Version
main: move $t0, $0 #
la $t1, array #
start: bge $t0, 100, exit #
sw $t0, 0($t1) #
addi $t0, $t0, 1 #
addi $t1, $t1, 4 #
j start #
exit: j $ra #
Previous slide
Back to first slide
View graphic version