You are right Gerhard, It was a saturday evening here when I wrote the reply ;-) Pailoor Gerhard Fiedler wrote: > At 15:37 04/17/99 +0530, Ravi Pailoor wrote: > >Try this > > > > clrf regB > > btfsc regA,0 > > bsf regB,7 > > btfsc regA,1 > [...] > > btfsc regA,7 > > bsf regB,0 > > > >If the bit is zero, skipping occurs and time is saved. The maximum time > >occure if there are 7 1's. > > how that? with which processor? doesn't the btfsc instruction take 2 cycles > when skipping? > > ge -- ================================================= For Embedded Controls Solutions and Custom Designs CHIP TECHNOLOGIES - Member, Microchip Consultant Program Bangalore - INDIA Email : chiptech@vsnl.com Webpage : http://business.vsnl.com/chiptech ( updated 16th April 1999 )