Question: Calculate the exact delay / clock cycles ( cc ) for the below delay subroutine: ( every default instruction is 1 cc , correct branch

Calculate the exact delay/clock cycles (cc) for the below delay subroutine: (every default instruction
is 1 cc, correct branch is 1 cc, incorrect branch is 2 cc, and RET is 4 cc. PS: QDELAY, D0, D1 and
D2 are labels.
QDELAY:
ldi r18,41
ldi r19,150
ldi r20,128
L1: dec r20
brne L1
dec r19
brne L1
dec r18
brne L1
RET

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 Programming Questions!