At 6:16 PM +0100 11-21-03, Jan-Erik Soderholm XA (TN/PAC) wrote: >Did they ? >I just remember the CLRF, and that isn't non-standard... > >> and my initial conversions don't give me correct answers. > >Did you correct the code ? The f/w parameters ? I would say the "CLRF register, w" is non standard because the Microchip data sheets show no options on CLRF. The square root code in the archive uses both: CLRF register, f CLRF register, w As I said, I think I have converted these correctly to plain CLRF and CLRF with an extra CLRW. I was thrown by the use of "btfsc ALUSTA,c" until I learned that the ALUSTA register is used in 17 family parts. I substituted the Parallax "snc" (skip no carry). Just to be cautious, I also tried "skip if carry". After my conversions of the posted routines to compile under the Tech-Tools assembler still failed to give me the square root of 25, I was offered an alternate routine by Scott Datallo. But his has a new assortment opcodes not listed in the Microchip data sheets. These include "setff" and "rcall". I've always used the Parallax extensions, but I had no idea there were so many other variations. -- Bryan Mumford Santa Barbara, California http://www.bmumford.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body