How about: rlf arg1,1 ;shift out a bit rrf arg2,1 ;shift it in rlf arg1,1 ;shift out a bit rrf arg2,1 ;shift it in rlf arg1,1 ;shift out a bit rrf arg2,1 ;shift it in rlf arg1,1 ;shift out a bit rrf arg2,1 ;shift it in rlf arg1,1 ;shift out a bit rrf arg2,1 ;shift it in rlf arg1,1 ;shift out a bit rrf arg2,1 ;shift it in rlf arg1,1 ;shift out a bit rrf arg2,1 ;shift it in rlf arg1,1 ;shift out a bit rrf arg2,1 ;shift it in Kind of long, but this should reverge arg1 and store it in arg2. At the same time, it will also reverse arg2 and store it in arg1. this is untried... give it a go egh? Terry >>I'm sure I saw an easy way to reverse a byte some time ago in this list, but >>I've forgotten it.. >> >>I want to change b7 b6 b5 b4 b3 b2 b1 b0 to b0 b1 b2 b3 b4 b5 b6 b7. > >I've seen a lot of replies, but to me, the simple 'brute force and >ignorance' technique seems to make the most sense. > > clrf dest > btfsc source,0 > bsf dest,7 > btfsc source,1 > bsf dest,6 > btfsc source,2 > bsf dest,5 > btfsc source,3 > bsf dest,4 > btfsc source,4 > bsf dest,3 > btfsc source,5 > bsf dest,2 > btfsc source,6 > bsf dest,1 > btfsc source,7 > bsf dest,0 > >17 instructions, 17 cycles > >dwayne > > >Dwayne Reid >Trinity Electronics Systems Ltd Edmonton, AB, CANADA >(780) 489-3199 voice (780) 487-6397 fax > >Celebrating 15 years of Engineering Innovation (1984 - 1999) > >* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >Do NOT send unsolicited commercial email to this email address. >My posting messages to Usenet neither grants consent to receive >unsolicited commercial email nor is intended to solicit commercial >email. > > ----------------------------------------------------------------- Sent from the desk of: Terry Allen Steen, EE engineering@marinapower.com 332 McLaws Circle, Ste 111 757-258-8800 (Voice) Williamsburg, Va 23185 757-258-8805 (FAX) ----------------------------------------------------------------- !I AM A WHALE MAIL USER! If you have a large file to send, goto http://www.whalemail.com send them to: mplengineer Give me your account and I will use it also ----------------------------------------------------------------- Visit our web-site: www.marinapower.com -----------------------------------------------------------------