> actgset > movf sbearing1,w > subwf abearing1,w > movwf TEMP0 > movlw d'58' > subwf TEMP0,w > btfss status,c > goto acw1 > goto cw1 If the result of the comparison between sbearing1 and abearing1 is 57 or less then the program will end up at cw1. Is it that the comparison never gets to 58 or more to cause a branch to acw1 ? -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu