Harold M Hallikainen wrote: > > The rlncf is a bit strange for me, as it makes "0b10110000" into > > "0b01100001" (the eighth bit turns first), so you have to be sure > > about the state of this bit. > > Oops! I forgot that the "no carry" means to just leave it out of > the loop, but there is, nonetheless, a loop of the msb to the lsb. > Should just do a ANDLW 0xfe afterwards to clear that bit, or do > an rlcf, but do a clrc first... I missed the start of this thread, so I haven't seen the code, but can't you just add WREG to itself to do this? -Andrew === Andrew Warren -- aiw@cypress.com === Principal Design Engineer === Cypress Semiconductor Corporation === === Opinions expressed above do not === necessarily represent those of === Cypress Semiconductor Corporation -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body