BITWAIT
Action
Wait until a bit is set or reset.

Syntax
BITWAIT x SET/RESET

Remarks

x Bit variable or internal register like P1.x , where x ranges form 0-7.

When using bit variables be sure that they are set/reset by software.
When you use internal registers that can be set/reset by hardware such as P1.0 this doesn't apply.

See also
-

Example


Dim a as bit
BITWAIT a , SET 'wait until bit a is set
BITWAIT P1.7, RESET 'wait until bit 7 of Port 1 is 0.
End

ASM
BITWAIT
P1.0 , SET will generate :
Jnb h'91,*+0

BITWAIT P1.0 , RESET will generate :
Jb h'91,*+0