Name:
if bit
Syntax:

Single line options:

IF variable BIT bitnumber SET/CLEAR THEN label

IF variable BIT bitnumber SET/CLEAR THEN GOTO label

IF variable BIT bitnumber SET/CLEAR THEN GOSUB label

IF variable BIT bitnumber SET/CLEAR THEN EXIT

Variable(s) - will be compared to value(s).

Bitnumber - is the bit number to check if set (1) or clear (0)

 

Multiple line/block structured options:

IF variable BIT bitnumber SET/CLEAR THEN

   {code}  

ELSEIF variable BIT bitnumber SET/CLEAR THEN

   {code}

ELSE

   {code}

ENDIF

Variable(s) - will be compared to value(s).

Bitnumber - is the bit number to check if set (1) or clear (0)

Description:
Applies To:
20X2, 28X1, 28X2, 40X1, 40X2
See Also:
Related Create:
    Share:
    Print:

    Submit Your Own Code!

    You must be logged in to submit code examples. Login now.

    Comments

    • Login to leave a comment.