Excellent! Bob Ammerman RAm Systems ----- Original Message ----- From: "Dmitriy A. Kiryashov" To: Sent: Saturday, March 09, 2002 11:36 AM Subject: Re: Bit operation quiz... > Hi Bob and guys. > > John Payson would be offered this. > > movfw DATAIN ;abcd efgh > abcd hgfe > btfsc DATAIN,0 ;exchange e and h > xorlw 0x09 > btfsc DATAIN,3 > xorlw 0x09 > btfsc DATAIN,1 ;exchange f anf g > xorlw 0x06 > btfsc DATAIN,2 > xorlw 0x06 > > 1 clock less, result in W as well. > > WBR Dmitry. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.