.text main: la $t0, person_1 # read in data li $v0, 4 #"Enter first initial: " la $a0, prompt1 syscall li $v0, 12 #syscall 12 read char syscall #TODO li $v0, 4 #"Enter last initial: " la $a0, prompt2 syscall li $v0, 12 #syscall 12 read char syscall #TODO li $v0, 4 #"Enter age: " la $a0, prompt3 syscall li $v0, 5 #syscall 5 read int syscall #TODO #### print data out li $v0, 11 #syscall 11 print char #TODO #print first intitial syscall li $v0, 11 #syscall 11 print char #TODO #print last intitial syscall li $v0, 11 #syscall 11 print char la $a0, '\n' syscall li $v0, 1 #syscall 1 print int #TODO #print age syscall li $v0, 0 jr $ra .data person_1: .space #TODO prompt1: .asciiz "Enter first initial: " prompt2: .asciiz "Enter second initial: " prompt3: .asciiz "Enter age: " # struct person{ # char first_initial; //offset # char last_initial; //offset # int age; //offset #}; size ??