Question: The variable values are right now located in the following registers: a in s0, and b in s1 . Using ONLY the add instruction ,

The variable values are right now located in the following registers: a in s0, and b in s1. Using ONLY the "add" instruction, write a piece of a MIPS assembly code that performs the following computation:

a = 65 * b

Hint 1: use the fact that 65=64+1, since 64 is a power of 2.

Hint 2: the MIPS register $zero might be useful. This question/a similar one has already been answered, but is there any OTHER way than just adding a, b 65 times?

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!