Hi All, What is the most efficient way to check the value of a register? Something like this?
Thanks
Thanks
Code:
Determine_Value
movlw 0xFF
movwf Value_Counter
Determine_Value_Loop
subwf RegisterX, w
btfsc STATUS, Z
goto Done
decf Value_Counter
goto Determine_Value_Loop
Done
movf Value_Counter, w
movwf ValueX
return