Keil Logo Arm Logo

8051 Instruction Set Manual

CLR

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

See Also: SETB

CLR A
C AC F0 RS1 RS0 OV   P
Bytes 1
Cycles 1
Encoding
11100100
Operation
CLR
A = 0
Example
CLR A
CLR bit
C AC F0 RS1 RS0 OV   P
Bytes 2
Cycles 1
Encoding
11000010 bit
Operation
CLR
(bit)  = 0
Example
CLR 01h
CLR C
C AC F0 RS1 RS0 OV   P
Bytes 1
Cycles 1
Encoding
11000011
Operation
CLR
C = 0
Example
CLR C

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.