At 12:57 PM 8/13/02 -0700, Brendan wrote: >Ok, that's what confused me. 6 is 110 in binary. I guess that was >just a typo. Oops! >Thx alot. When I have PIC code for this, I will post it. (I'm just >afraid of the 32*8 multiply. I'll be using a code generator for that >one :o) How many bytes you use depends on how long you want the run length and the resolution to be. Perhaps a 2-byte unsigned integer would be enough. Multiplying by 6 is fairly easy: 6D = 110B (as you noted). So just shift k left once and twice and add the two together to carry out the multiply by 6. ================================================================ Robert A. LaBudde, PhD, PAS, Dpl. ACAFS e-mail: ral@lcfltd.com Least Cost Formulations, Ltd. URL: http://lcfltd.com/ 824 Timberlake Drive Tel: 757-467-0954 Virginia Beach, VA 23464-3239 Fax: 757-467-2947 "Vere scire est per causas scire" ================================================================ -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body