ARRAY_LEN = 5 ARRAY_LAST_INDEX = (ARRAY_LEN - 1) .text main: # Locals # p $t0 # q $t1 loop_print_array: bgt $t0, $t1, loop_print_array_end # while (p <= q) { li $v0, 1 #printf("%d", *p); #TODO syscall li $v0, 11 # putchar(' '); li $a0, ' ' syscall #TODO # p++ b loop_print_array loop_print_array_end: li $v0, 11 # putchar('\n'); li $a0, '\n' syscall li $v0, 0 jr $ra .data array: .word 4, 73, 12, 55, 9 #int array[ARRAY_LEN] = {4, 73, 12, 55, 9};