Question: using MIPS: Write a MIPS program that executes the statement: s = (a + b) (c + 101), where a, b, and c are user

using MIPS:
Write a MIPS program that executes the statement: s = (a + b) (c + 101), where a, b, and c are user provided integer inputs, and s is computed and printed as an output.
Answer the following:
a. Suppose the user enters a = 5, b = 10, and c = -30, what is the expected value of s?
b. Which instruction in your program computed the value of s and which register is used?
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.

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 Databases Questions!