.data array: .space 20 .text main: la $s1, array # loads the address of the array into a register li $t0, 1 sw $t0, 0($s1) # stores 1 in array[0] li $t0, 2 sw $t0, 4($s1) # stores 2 in array[1] li $t0, 3 sw $t0, 8($s1) # stores 3 in array[2] li $t0, 4 sw $t0, 12($s1) # stores 4 in array[3] li $t0, 5 sw $t0, 16($s1) # stores 5 in array[4] li $v0, 10 # exit cleanly syscall