piclist 1999\10\29\181113a >
Thread: Efficient way to reverse a byte?
www.piclist.com/techref/index.htm?key=efficient+way+reverse
picon face BY : Keith Causey email (remove spam text)



This would probably waste too much port space but you could reverse the 'w'
register in two instructions if you wired two ports together like this:
RA0->RB7
RA1->RB6
RA2->RB5
RA3->RB4
RA4->RB3
RA5->RB2
RA6->RB1
RA7->RB0
and executed the code sequence
mov  RA,W
mov  w,RB

<010001bf225a$63ef6e60$0321e7d8@bumblefuck> 7bit

See also: www.piclist.com/techref/index.htm?key=efficient+way+reverse
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Efficient way to reverse a byte?

month overview.

new search...