Thanks Andy! I forgot about the SFRs. Didn't know there was a CLRC. Will try when I get home tonight. -Randie > From fastfwd@IX.NETCOM.COM Tue Nov 4 12:30:57 1997 > MIME-Version: 1.0 > Content-transfer-encoding: 7BIT > Date: Tue, 4 Nov 1997 12:26:54 -0800 > Comments: Authenticated sender is > From: Andrew Warren > Subject: Clearing the Carry (was: "Re: RRF and RLF instructions") > To: PICLIST@MITVMA.MIT.EDU > > Randie Ohtsji [4555] wrote: > > > Is there any way to reset Carry back to zero without using RRF or > > RLF? Something similar to CLRW (which sets Z). Simple single > > command? Tricks? Can't find anything in instruction set. > > Randie: > > The Carry flag is in bit 0 of the STATUS register (register 3), so > you can clear it with: > > BCF 3,0 > > or, if you've defined the appropriate symbols in your source code: > > BCF STATUS,CARRY > > or, if you're using MPASM, you can just do the following: > > CLRC > > which is automatically translated by the assembler to "BCF 3,0". > > -Andy > > === Andrew Warren - fastfwd@ix.netcom.com > === Fast Forward Engineering - Vista, California > === http://www.geocities.com/SiliconValley/2499 >