Question: 3. How many times the following loop will be executed calculate the delay for a 4 MHZ oscillator. myreg equ 0x88 delay movlw 0x00 ;
3. How many times the following loop will be executed calculate the delay for a 4 MHZ oscillator.
myreg equ 0x88
delay movlw 0x00 ; 1 instr cycle
movwf myreg ; 1 instr cycle
again nop ; 1 instr cycle
nop ; 1 instr cycle
nop ; 1 instr cycle
nop ; 1 instr cycle
decf myreg, f ; 1 instr cycle
bnz again ; 2 instr cycle
return ; 1 instr cycle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
