(Solved) : Readint System Call Number 5 Cause Running Program Stop Wait User Type Integer Keyboard In Q44135277 . . .
The read_int system call (number 5) will causethe running program to stop and wait for the user to type in aninteger at the keyboard. The integer will be put into $v0 registerand will be available after the syscall completes.Write a MIPS assembly language program which prompts for a user toenter four integers and calls read_int four timesto read in four integers. The program should perform addition,subtraction, multiplication, integer division, and modulo operation(compute the remainder of their division) using two of these fourintegers (see the C program below), then display their result onthe console window. Also compute (num3 % num4)+((num2 – 21 * num1)/ 5) where num1 is the first read integer, num2 is the second readinteger, num3 is the third read integer, and num4 is the forth readinteger, and display the result. Name your source code fileassignment3.s.
Here is a sample output (user input is in bold):
Enter a value:
8
Enter another value:
5
Enter one more value:
11
Enter one more value:
-3
num3+num4=8
num4-num1=-11
num3*num1=88
num1/num2=1
num3 mod num1=3
(num3 mod num4)+((num2 – 21 * num1) / 5)=-30
Forgot to mention I only need the last one (num3 modnum4)+((num2 – 21 * num1) / 5)=-30
I have been able to figure out the rest
Expert Answer
Answer to The read_int system call (number 5) will cause the running program to stop and wait for the user to type in an integer a…
OR