Shift it in regular in one register and then reverse the bit order and rotate times the number of bits received in a second? Requires shift register, count register and result register. --- James Newton mailto:jamesnewton@geocities.com 1-619-652-0593 http://techref.massmind.org NEW! FINALLY A REAL NAME! Members can add private/public comments/pages ($0 TANSTAAFL web hosting) -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Joep Schrokn Sent: Sunday, April 16, 2000 13:19 To: PICLIST@MITVMA.MIT.EDU Subject: Shifting in Software Hello Picers, I've got a problem, I need to make a shifting register in software. If I've got a 1 then that one need to be shifted in a Register Shift: Received a 1? xxxxxxxx => xxxxxxx1 Received a 1? xxxxxxx1 => xxxxxx11 Received a 0? xxxxxx11 => xxxxx011 . . . Received a 1? 0111011 => 11111011 and write this to a Register Can anybody help me please? Many thanks in advance, Joep Schroen