99 / 132 page

HT80C51 User Manual
80C51 Family Instruction Set – Instruction definitions
Handshake Solutions
© Philips Electronics N.V. 2005
Page 99 of 132
CLR A
Function: Clear Accumulator
Description: The Accumulator is cleared (all bits reset to zero). No flags are affected.
Example: The Accumulator contains 5CH (01011100B). The instruction,
CLR A
will leave the Accumulator set to 00H (00000000B).
Bytes: 1
Cycles: 1
Encoding:
Operation: CLR
(A)
← 0
CLR bit
Function: Clear bit
Description: The indicated bit is cleared (reset to zero). No other flags are affected. CLR can operate on the
carry flag or any directly addressable bit.
Example: Port 1 has previously been written with 5DH (01011101B). The instruction,
CLR P1.2
will leave the port set to 59H (01011001B).
CLR C
Bytes: 1
Cycles: 1
Encoding:
Operation: CLR
(C)
← 0
CLR bit
Bytes: 2
Cycles: 1
Encoding:
Operation: CLR
(bit)
← 0
1
1
1
0
0
1
0
0
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
0
bit address