> Is there a simple (short) way to reverse the order of bits in a byte. > or even better a nibble in the middle of a byte ? Thanks Yes. The simplest, and also fastest, is by table lookup. --- Warren Davis ================================================ Davis Associates, Inc. 43 Holden Road West Newton, MA 02165 U.S.A. Tel: 617-244-1450 FAX: 617-964-4917 Visit our web site at: http://www.davis-inc.com ================================================