Keil™, An ARM® Company

8051 Instruction Set Manual

SETB

The SETB instruction sets the bit operand to a value of 1. This instruction can operate on the carry flag or any other directly addressable bit. No flags are affected by this instruction.

See Also: CLR

SETB bit
CACF0RS1RS0OV P
Bytes2
Cycles1
Encoding
11010010bit
Operation
SETB
(bit) = 1
Example
SETB 63h
SETB C
CACF0RS1RS0OV P
Bytes1
Cycles1
Encoding
11010011
Operation
SETB
C = 1
Example
SETB C