I have this code. What I want to know is what’s the purpose of this anldw line?
From my view I can say it will never allow to compare D’125’.Bcuz it allows only D’127’.
Help me to solve this problem.
From my view I can say it will never allow to compare D’125’.Bcuz it allows only D’127’.
Help me to solve this problem.
Code:
movf COUNT,W ;get the COUNT value
andlw b'01111111' ;AND with 7Fh (D’127’)
xorlw .125 ;b'01111101'
btfss STATUS,Z ;compare with zero bit
goto Exit
goto Main