Question: Write a complete MIPS assembly language program that prompts the user to input two integers and then prints out the number that is closer to

Write a complete MIPS assembly language program that prompts the user to input two integers and then prints out the number that is closer to zero. For example, if the two inputs are 14 and 8, it should print out 8. As another example, if the two inputs are 3 and -10, then it should print out 3.Hint: You can use the instruction abs $t1, $tO* to calculate the absolute value of $t and put the result in $1.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!