Alan King wrote: > > Scott Dattalo wrote: > > > > Vladimir M. Klochko wrote: > > > > In all of these responses, I haven't seen anyone mention proper long > division as being the correct response to "what's the inverse of > multiply x by x?" There's a reason it's called long division. Because it takes a hell of a long time for it to execute without dedicated hardware. The best general purpose 8-bit division routine that I've seen is Andy's: http://www.geocities.com/SiliconValley/2499/answers.html#PIC00064 The stuff that we've been posting the last few weeks are routines that are highly optimized and consequently faster than the general purpose one. Scott