SET
Action

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

Syntax

SET bit

SET var.x

Remarks

bit P1.x, P3.x or a Bit variable.
Var A byte, integer or word variable.
X Bit of variable (0-7) to set. (0-15 for Integer/Word) and 0-31 for a LONG.
See also
RESET


Example


Dim b1 as Bit, b2 as byte, c as Word
SET P1.1 'set bit 1 of port 1
SET b1 'bitvariable
SET b2.1 'set bit 1 of var b2
SET C.15 'set highest bit of Word