I've used the square root routines out of the archive successfully. One
thing to watch out for with any code out of the archive is what processor
core they were written for. There are several differences in flag results
between the 16 and 18 series cores. I've gotten messed up by these before.
So, look for any line of code that checks a flag and look at the few
instructions ahead of it. The code may count on some instruction not
affecting flags while the 18 instruction does affect flags. Look
especially at incf and decf instructions.
Good luck!
Harold
{Quote hidden}> Hi Bryan,
>
> The 24- and 32-bit routines of mine in the archive do work correctly as
> far
> as I'm aware although, like Scott, I have not tested all cases. If you
> need
> a 32-bit sqrt I recommend reading Scott's pages and developing code from
> that, all the sqrt code I wrote was based on Scott's code and algorithm
> descriptions. You might also want to have a look at John Power's work at
>
http://www.bcpl.net/~jpower/fastsqrt.pdf.
>
>
> - Andy.
>
>> {Original Message removed}