delay_loop
Newbie level 1
Code:
movlw 0x20
movwf file_A, file_B
Loop :nop
nop
nop
decf fileA,F,fileB
bnz Loop
To find the time delay of this code,
I want to ask is every instruction(eg. nop) execute in one instruction cycle?
Also I want to ask why there are two file registers in (movwf file_A, file_B) ? Does it mean move the literal in WREG to two file registers(file_A and file_B)?
Thank you for your help.
Last edited by a moderator: