For such a small number you could just subtract 10 from it until there was a borrow. Count the number of times and there you have it. Of course, like most things, there is a trade-off doing it this way. David On Mon, 4 Feb 2002 11:58:54 -0700 "WEBB,TIM (A-Sonoma,ex1)" wrote: > Could someone show me how to do simple division on a 16F877 > > For example, I have a number between 0 and 255 and I want to know how many > times 10 can be divided into the number. > Is there a simple way to achieve this? > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body