Hans Blichfeldt wrote: > When you start operation, carry may or may not be set. > Correct (secure) way is therefore: > > clrf PORTB > bcf STATUS,C > bsf PORTB,0 > > then: rlf etc I am just using the 12C50x parts right now (which is the older 12-bit core) but none of the instructions CLRF, BCF, or BSF clears the CARRY flag for those parts. For my education, does one of these instructions clear the CARRY flag in the 14- bit parts? Or am I just missing the point? I would have used: CLRW ; W = b'00000000', CARRY = ? ADDWF W,W ; W = b'00000000', CARRY = 0 and then done the rotate. Am I wrong? Did I miss something? Michael ************************************************************************* When the way of the Tao is forgotten, kindness and ethics must be taught. Men must learn to pretend to be wise and good. -- Lao Tzu *************************************************************************