ARRAY_LEN = 5 # #define ARRAY_LEN 5 INT_SIZE = 4 # sizeof(int) .text main: li $t0, 0 # int i = 0; loop_cond: bge $t0, ARRAY_LEN, loop_end # if (i >= ARRAY_LEN) {goto loop_end;} loop_body: mul $t1, $t0, INT_SIZE la $t2, array add $t2, $t2, $t1 # index = address of array + i*sizeof(int) li $v0, 1 # syscall print int lw $a0, ($t2) # printf("%d",array[i]); syscall li $v0, 11 la $a0, ' ' # putchar(' '); syscall addi $t0, 1 b loop_cond loop_end: li $v0, 11 la $a0, '\n' # putchar('\n'); syscall li $v0, 0 # return 0; jr $ra .data array: .word 4, 73, 12, 55, 9 # int array[ARRAY_LEN] = {4, 73, 12, 55, 9};