Hi Shane (Shane Nelson), in on Sep 2 you wrote: > On Tue, 2 Sep 1997, Scott Dattalo wrote: > > > How fast can you logically AND two bits? > > > > Given: > > bit_a of register A > > bit_b of register B > > bit_c of register C > > > > The goal in C parlance is: > > > > C.bit_c = A.bit_a & B.bot_b; > > > bsf C,bit_c ;assume the result will be high. > btfss A,bit_a ;does bit_a make the result low? > bcf C,bit_c ;yes. > btfss B,bit_b ;does bit_b make the result low? > bcf C,bit_c ;yes. > > 2+3+2+1=8 points if this works :) You can save a cycle: bsf C,bit_c btfsc A,bit_a btfss B,bit_b bcf C,bit_c