kutalinelucas
New Member
i'm trying to compaire a value stored in w to a number of values stored in general purpose registers in a loop, could anybody pleasse help?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
check1 movf Value,W ;get the new value
xorwf FixValue,W ;xor with the fix value
btfss STATUS,Z ;has the zero bit set?
retlw 00 ;no,then return
movf Value,W ;yes,both are equal then return with W
return