PUTBITΒΆ
Provided by util.lib.
The input to this function consists of a DWORD X, a BYTE N and a BOOLean value B.
PUTBIT sets the N:sup:th bit from X on the value B, whereby it starts counting from the zero bit.
Example in ST
A:=38; (* binary 100110 *)
B:=PUTBIT(A,4,TRUE); (* Result : 54 = 2#110110 *)
C:=PUTBIT(A,1,FALSE); (* Result : 36 = 2#100100 *)