> In the shortest possible time, reverse the order of the bits > in a random > data register. Assume this is the time critical element of > the application, > and nothing about the application is as important as getting > the order of > these bits reversed as quickly as possible. 1. Random? You want the reverse of random? I will give you 0b_0000_0000, now you prove me wrong! 2. Write to a port, read back from another port with appropriate wiring between the ports 3. hardware tricks are not allowed? I did not hear you say so! But you could always use a RETLW table. 4. Bugger, it must be a small amout of code too? Better get your specs right next time, and ask Scott to do it in 3.5 instructions. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu