Seems to me that this would be 1 instruction shorter & 1 cycle quicker if you just did either of these: bcf otherfile,otherbit btfsc testfile,the_bit bsf otherfile,otherbit *or* bsf otherfile,otherbit btfss testfile,the_bit bcf otherfile,otherbit It's not like you need 2 tests Mark (Been offline, hope someone else saw this as well ) Gennette Bruce wrote: > > If you've got a few spare bytes then 2 test and forces can be used (a little > unsubtle, but it works) > > btfss testfile,the_bit > bcf otherfile,otherbit > btfsc testfile,the_bit > bsf otherfile,otherbit > > If the_bit is set then the code jumps the bcf, but performs the bsf (copies > the bit) > If the_bit is clear then the code performs the bcf, but jumps the bsf > (copies the bit) > > Bye. > > -----Original Message----- > From: Dmitry Kiryashov [SMTP:dk@CARROLL.COM] > Sent: Tuesday, 10 August 1999 2:57 > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: copying a bit > > Hi Scott. > > > But there really isn't a clean way to copy a bit from one > > location to another. > > Actually I guess that you mean that there are alot of ways > to do it ;-) > > WBR Dmitry.