- Name:
-
togglebit
- Syntax:
-
TOGGLEBIT var, bit
Var - is the target variable.
Bit - is the target bit (0-7 for byte variables, 0-15 for word variables)
- Description:
-
Toggle (invert) a specific bit in the variable.
This command toggles (inverts) a specific bit in the target variable.