ARRAY_LEN = 5 .text main: # Locals # $t0, i # $t2, element li $t0, 0 #i = 0 loop_print_array: bge $t0, ARRAY_LEN, loop_print_array_end # i < ARRAY_LEN; lb $t2, array($t0) #$t2 = array[i] li $v0, 11 move $a0, $t2 #putchar(array[i]); syscall addi $t0, $t0, 1 #i++ b loop_print_array loop_print_array_end: li $v0, 11 #putchar('\n'); li $a0, '\n' syscall li $v0, 0 jr $ra .data array: .byte 'h', 'e', 'l', 'l', 'o' #char array[ARRAY_LEN] = {'h', 'e', 'l', 'l', 'o'};