Bryan Mumford wrote: > I would say the "CLRF register, w" is non standard... It's OK on the 18-series PICs *if* the value of w is "1" or "0". > because the > Microchip data sheets show no options on CLRF. The data sheet for the 18-series PIC does. Have you specified what PIC use are using ? > 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. Which could be wrong since the CLRF ,w does *not* clear W, AFAIK. > 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". Parallax ?? What processor *are* you using ? > 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. What are the "Parallax extensions" ? Jan-Erik. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body