Bryan Mumford wrote: > I've found a square root function in the archives, but I don't > understand the code as written, and neither does my assembler! Here's > a sample: > > clrf ACCcHI,f ; > clrf ACCbLO,w ; > > I understand the "clrf" followed by a register, but what's the ",f" > and ",w" mean? I thought CLRF had no additional parameters (beyond > the register). On the 16-series this is illegal syntax (or at least undocumented syntax). I've no idea what MPASM does about it. Ignors it or gives an error maybe. On the 18-series this is just OK, *IF* the values of the symbols "f" and "w" are as normal, w=0 and f=1. *BUT*, the second parameter doesn't stand for "WREG" or "FILE", they are "Access bank" or "Bank as defined by the BSR". So there will be *no* clearing of WREG in either case, as I understand it, and opposed to what was said in another post. And, of course, MPASM doesn't care if you se a/b or f/w or whatever as the second parameter, as long as the symbols has the right value. 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