Question: Consider the following delay subroutine. a . Write after each instruction the number of instruction cycles it takes to execute b . Calculate the number
Consider the following delay subroutine.
a Write after each instruction the number of instruction cycles it takes to execute
b Calculate the number of instruction cycles it takes to execute the call instruction and
Delay subroutine.
; more code
call Delay ; call subroutine
; more code
Delay: movlw ; Count init value
movwf cnta ; Init counter
decf cntfa ; decrement count
nop ; delay cycle
bnz DTop ; not done?
return ; back to caller
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
