Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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 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/2 points for calculating the execution time for 10 MHz, and (c) 22 points for calculating the execution time for 12 MHz] ; Delay subroutine (DLY) ; Input: D0 (Longword) = 5000 DLY MOVEI.L #500,,D2 ; ..8 cycles INLP SUBI.L #1,D2 ; 4 cycles BNE INLP ; 10 cycles SUBI.L #1,D0 ; .4 cycles BNE DLY ; .10 cycles RTS ....... .16 cycles

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

Computer Architecture A Quantitative Approach

Authors: John L. Hennessy, David A. Patterson

5th edition

012383872X, 978-8178672663

Students also viewed these Programming questions