So you're saying you'll take the challenge to beat 10 steps? :-) ----- Original Message ----- From: "Jinx" To: Sent: Sunday, March 10, 2002 5:07 AM Subject: Re: [PIC}: Bit operation quiz... > > Jinx, your solution had the top 4 bits swapped. With some > > code adjustments I managed to get the result in 14 steps. > > Ah well. I have to admit to a little confusion over which nybble > was to be reversed. > > "I can re-route the 4 lowest lines to the LED's, but the last 4 > bits get reversed. What's the fastest way, in code, to reverse > just those 4 lowest bits, and leave the 4 highest bits untouched? > > Assume input = ABCDEFGH, then output should be ABCDHGFE" > > I guessed wrong, as I would normally put the bit order HGFEDCBA. > Maybe I'd have gone a different way > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.