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 -- http://www.piclist.com hint: PICList Posts must start with ONE topic: "[PIC]:","[SX]:","[AVR]:" =uP ONLY! "[EE]:","[OT]:" =Other "[BUY]:","[AD]:" =Ads