>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.