Question: (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
Get step-by-step solutions from verified subject matter experts
