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
NONE
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