| ??? 05/10/03 07:10 Read: times |
#45157 - RE: is it possible to write like this Responding to: ???'s previous message |
lance austin wrote: ------------------------------- loop: cjne p1,#0,loop any hint for detecting which bit is set and then what if more bits are set and some bit go low also... ------------------------------- have you checked out the '51 instruction set? you shall find instructions like jb,jnb,jbc which deal exclusively with bits.P1 is bit addressable.But using cjne is equally vaild and shall be far more useful when delaing with bigger numbers. Pranav |



