Hi Andrew. Andrew Warren wrote: > > Steve: > > If Reg1 can contain values other than zero or one, do this: > > MOVLW 00AH > TSTF Reg1 > SKPNZ > MOVWF Reg2 > > MOVLW 003H > DECF Reg1,W I think the sequence should be decf Reg1,W movlw 0x3 Originally 003H is substituted. > SKPNZ > MOVWF Reg2 WBR Dmitry. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.