Here's an obscure bit of code I recently came up with. See if you can figure out what it does without actually simulating it: movwf temp mullw .205 rlncf PRODH,w andlw 0xF0 mullw .160 bsf STATUS,C subfwb PRODH,w addwf temp,w Hints: This code does actually do something useful. Input and output ar= e in W as written. It produces valid results for inputs up to 159, althoug= h the range over which you'd probably use it is somewhat less than that. Jason Harper -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body