Gawd Scott, heh, heh. When you, Andy, Dmitry and our other Russian friends, John (I wish he would come back to the list), post code, many of us take it as `gospel'. I glanced over it as I always do but missed it due to being focused on other topics. The last thing we need is you trying to trick us ;-) BTW Bob, I'm adding you to my list of `legendary code gurus'. It won't buy you a cup of coffee but I'll buy a beer if you ever stop by Portland, OR. - Tom ;-) At 08:42 AM 10/19/00 -0500, Scott Dattalo wrote: >On Thu, 19 Oct 2000, Bob Ammerman wrote: > >> ----- Original Message ----- >> From: Scott Dattalo >> skpnc >> incf Product+2,f >> skpnc >> incf Product+1,f >> skpnc >> incf Product+0,f >> >> Uh, this last snippet will _not_ work. >> If carry is clear on entry, then no bytes will be touched, this is fine. >> But, if carry is set on entry, then all three bytes will be incremented. >> This is an error. >> >> This occurs because the carry bit is _not_ set by the "incf" instruction. > >Yep, you're right. I was just seeing if people on what used to be the "pic" list >still actually read pic code. > >BTW, Bob, on the 18cxxx we'd do this instead: > > clrw > addwfc Product+2,f > addwfc Product+1,f > addwfc Product+0,f > >Scott ------------------------------------------------------------------------ Tom Handley New Age Communications Since '75 before "New Age" and no one around here is waiting for UFOs ;-) -- http://www.piclist.com hint: PICList Posts must start with ONE topic: "[PIC]:","[SX]:","[AVR]:" =uP ONLY! "[EE]:","[OT]:" =Other "[BUY]:","[AD]:" =Ads