On Mon, 28 Jan 2002, Andrew Warren wrote: > If Reg1 can contain values other than zero or one, do this: > > MOVLW 00AH > TSTF Reg1 > SKPNZ > MOVWF Reg2 > > MOVLW 003H > DECF Reg1,W > SKPNZ > MOVWF Reg2 Or this: movlw -2 addwf Reg1,W ;Set C if Reg1 is greater than 1 movlw 0x0a btfsc Reg1,0 movlw 3 skpc movwf Reg2 Scott -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics