Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following MIPS program computes a function of $ 9 and $ 1 0 , and places the result in $ 1 1 . a

The following MIPS program computes a function of $9 and $10, and places the result in $11.
a) Assume that $9 is initially 5, and $10 is initially 12. What value does $11 have after this program is run?
b) Write a mathematical equation that describes this function in terms of $9 and $10.$11=????.
addi $3,$0,3
loop: add $9,$9,$9
addi $3,$3,-1
bne $3,$0, loop
add $11,$9,$10
Assume that an add/addi takes one cycle and a bne takes two cycles. How many cycles does it take to execute the program in problem 1? Don't forget that the program loops several times.
Answer question 2 please
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mastering Big Data Interview 751 Comprehensive Questions And Expert Answers

Authors: Mr Bhanu Pratap Mahato

1st Edition

B0CLNT3NVD, 979-8865047216

More Books

Students also viewed these Databases questions