----- Original Message ----- From: "Jan-Erik Soderholm XA (TN/PAC)" To: Sent: Monday, October 06, 2003 11:34 AM Subject: Re: [PIC]: Rotating a bit over 2 bytes > jumanji wrote : > > Actually I meant something like: "one 'set' bit that rotates over 2 bytes" > > OK. Doesn't change much. So you startup by putting > 15 zeros and 1 one in the two bytes in some initialization > routine and then rotate all bits, right ? Correct. > The rotate code below dosn't care what's in the bytes, of course, > but rotating 16 zeros or 16 ones would be hard to debug :-) hehe, true, it works nicely ! > Jan-Erik. > PS. > It should aso be said that you use the 18-series, > on the 16-series you should use RLF instead of RLCF... Right again, 18F452 ! Thanks & best regards ! -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.