Email: Password: Remember Me | Create Account (Free)
8051/8052 Instruction: CLR

Operation:CLR
Function:Clear Register
Syntax:CLR register

InstructionsOpCodeBytesCyclesFlags
CLR bit addr0xC221None
CLR C0xC311C
CLR A0xE411None


Description: CLR clears (sets to 0) all the bit(s) of the indicated register. If the register is a bit (including the carry bit), only the specified bit is affected. Clearing the Accumulator sets the Accumulator’s value to 0.

See Also: SETB, Instruction Set