On Thu, 20 Nov 2003, Bryan Mumford wrote: > Is anyone using the 24 bit or 32 bit square root functions in the > archives? After struggling with the syntax, I have it working with my > assembler, but I don't get the right answers. Perhaps I've bungled > the conversion..... Hi Bryan, I got your messages earlier... As you know, Andy David wrote those routines and not me. However, his 32-bit routine is based upon my 16-bit routine. Also, he targeted the 17C43. A few months someone asked about a 32-bit square root routine, so like Andy I ported my 16-bit routine. I'm not sure if Andy's routine is correct or not, but I have tested mine and it certainly works for several test cases (i.e. I haven't performed a brute-forced check of all 2^32 inputs). I'm also hesitant to release the code because it has no comments at all. If you're willing to live with that then here it is: http://www.dattalo.com/technical/software/pic/sqrt_32bit.asm Scott -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body