#Application 2(a) .text 0x00400000 #Code section #Display the message "Give number:" li $v0,4 #Load the function number la $a0,msg_read_int #Load the message starting address syscall #Function call #Read number (keyboard) li $v0,5 #Load the function number syscall #Function call move $t1,$v0 #Store the number in $t1 #Display "\nNumber=" li $v0,4 #Load the function number la $a0,msg_print_int#Load the message starting address syscall #Function call #Display number (Screen) li $v0,1 #Load the function number move $a0,$t1 #Load the number to be displayed in $a0 syscall #Function call li $v0,10 #Program termination syscall #Function call .data #Data section msg_read_int: .asciiz "Give number:" msg_print_int: .asciiz "\nNumber="