RESET

Top  Previous  Next

Action

Reset a bit to zero.

 

 

Syntax

RESET bit

RESET var.x

RESET var

 

 

 

 

Remarks

Bit

Bit or Boolean variable.

Var

A byte, integer, word or long variable.

X

Bit of variable to clear. Valid values are : 0-7 (byte, registers), 0-15 (Integer/Word) and (0-31) for a Long

 

You can also use the constants from the definition file to set or reset a bit.

RESET PORTB.PB7   'will reset bin 7 of portB. This because PB7 is a defined constant in the definition file.

 

When the bit is not specified, bit 0 will be cleared.

 

 

See also

SET , TOGGLE

 

 

Example

SEE SET