Question: 1 . Write a MIPS program that asks the user to input three integers, A , B , and C . The program should compute
Write a MIPS program that asks the user to input three integers,
A B and C The program should compute the result of the
expression:
s A B C
a After computing s the program should: If the result s is greater than or equal to display the
message "Large Result". If the result s is less than display the message "Small
Result".
b Which instruction in your program computed the value of s and
which register is used to store the result? c What is the address of this instruction in memory? d Put a breakpoint at this instruction and write the value of the
register used for computing s in decimal and hexadecimal.
Write a MIPS program that asks the user for their name, then
checks if they want to continue:
a If they choose to continue by entering y or Y the
program asks for their surname and prints the full name. b If they choose n or N the program prints "You chose to
exit." c If any other input is provided, the program prints "Invalid
input."
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
