8051 Instruction Set Manual

CLR

The CLR instruction sets the specified destination operand to a value of 0.

See Also: SETB

CLR A
CACF0RS1RS0OV P
Bytes1
Cycles1
Encoding
11100100
Operation
CLR
A = 0
Example
CLR A
CLR bit
CACF0RS1RS0OV P
Bytes2
Cycles1
Encoding
11000010bit
Operation
CLR
(bit)  = 0
Example
CLR 01h
CLR C
CACF0RS1RS0OV P
Bytes1
Cycles1
Encoding
11000011
Operation
CLR
C = 0
Example
CLR C