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

(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) 2 2 points for calculating the execution time for 10 MHz, and (c) 21/2 points for calculating the execution time for 12 MHz] ; Delay subroutine (DLY) ; Input: DO0 (Longword) -5000 DLY INLP MOVEI.L SUBI.L BNE SUBI.L BNE RTS #500"D2 #1 ,D2 INLP #IDO DLY ; . . . .8 cycles ; 4 cycles ; 10 cycles 16 cycles (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) 2 2 points for calculating the execution time for 10 MHz, and (c) 21/2 points for calculating the execution time for 12 MHz] ; Delay subroutine (DLY) ; Input: DO0 (Longword) -5000 DLY INLP MOVEI.L SUBI.L BNE SUBI.L BNE RTS #500"D2 #1 ,D2 INLP #IDO DLY ; . . . .8 cycles ; 4 cycles ; 10 cycles 16 cycles
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
