Question: Write a program that determines the value of the following expression: (x*y)/z Use x = 1600000 (=0x186A00), y = 80000 (=0x13880), and z = 400000
Write a program that determines the value of the following expression: (x*y)/z
Use x = 1600000 (=0x186A00), y = 80000 (=0x13880), and z = 400000 (=61A80). Initialize three registers ($8, $9, and $10) to these values.
Choose wisely the order of multiply and divide operations so that the significant bits always remain in the lo result register.
Use SPIM
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
