Question: 4. (10 points) Consider the following code segment. Calculate the time (in sec) required to execute the code segment in (i) a microprocessor runs at

 4. (10 points) Consider the following code segment. Calculate the time

4. (10 points) Consider the following code segment. Calculate the time (in sec) required to execute the code segment in (i) a microprocessor runs at 10 MHz and (ii) a microprocessor runs at 12 MHz. [(a) 5 points for calculating the total number of cycles, (b) 21/h points for calculating the execution time for 10 MHz, and (c) 212 points for calculating the execution time for 12 MHz] Delay subroutine (DLY) Input: DO (Longword) 5000 DLY INLP SUBI.L MOVELL #500,,D2 #1 , D2 INLP #1,DO DLY 4 cycles ; 10 cycles BNE SUBIL BNE RTS ...4 cycles ...0 cycles ...16 cycles

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!