RESET
Action

Reset a bit of a PORT (P1.x, P3.x) or an internal bit/byte/integer/word/long variable.

Syntax

RESET bit

RESET var.x

Remarks

bit Can be a P1.x, P3.x or any bit variable where x=0-7.
var Can be a byte, integer or word variable.
x Constant of variable to reset.(0-7) for bytes and (0-15) for Integer/Word. 0-31 for a LONG.

See also
SET


Example


Dim b1 as bit, b2 as byte, I as Integer
RESET P1.3 'reset bit 3 of port 1
RESET b1 'bit variable
RESET b2.0 'reset bit 0 of byte variable b2
RESET I.15 'reset MS bit from I