.text main: li $v0, 4 la $a0, main_msg1 syscall #printf("calling function f\n"); #TODO CALL FUNCTION #f(); li $v0, 4 #printf("back from function f\n"); la $a0, main_msg2 syscall li $v0, 0 #return 0 jr $ra f: li $v0, 4 la $a0, f_msg1 syscall #printf("in function f\n"); .data main_msg1: .asciiz "calling function f\n" main_msg2: .asciiz "back from function f\n" f_msg1: .asciiz "in function f\n"