Thank you for answering.
I'm only using cpf-instructions because I'm in the chapter in my book where they use cpf-instructions, therefore I'm practising it.
And I had another question:
In this subroutin they are using
?
Is there any advantage of using bnz instead of decfsz?
I'm only using cpf-instructions because I'm in the chapter in my book where they use cpf-instructions, therefore I'm practising it.
And I had another question:
In this subroutin they are using
decf n,f
bnz again
But instead ofmovlw .14
movwf n
again:
decf n,f
bnz again
nop
rlncf n,w
movwf PORTC
RETURN
can I usedecf n,f
bnz again
Rich (BB code):
decfsz n,f
goto again
Is there any advantage of using bnz instead of decfsz?