Hi everybody I have a small question to ask.
I have saved a value in a temporary register called TEMP.
Actually I don’t know that value.
After a long time after PIC doing some other work I want to read that saved value.
Here I have two codes. What code do I have to use?
I have saved a value in a temporary register called TEMP.
Actually I don’t know that value.
After a long time after PIC doing some other work I want to read that saved value.
Here I have two codes. What code do I have to use?
Code:
movwf TEMP ;move the value from temparary register
xorlw 04H ;compare with a known value
btfsc STATUS,Z
goto OUTPUT
Code:
movlw 04H ;move a known value to W
xorwf TEMP,w ;compare the value with TEMP
btfsc STATUS,Z
goto OUTPUT