
Rev. 1.00
��1 of ���
�an�a�� 1�� �01�
Standard 8051 8-Bit Flash MCU
HT85F2260/HT85F2270/HT85F2280
Instruction Set
Instruction Set
Boolean Manipulation
Mnemonic
Description
Code
Bytes Cycles
CLR C
Clear carry flag
0XC3
1
1
CLR bit
Clea� di�ectl� add�essed bit
0XC�
�
3
SETB C
Set carry flag
0XD3
1
1
SETB bit
Set di�ectl� add�essed bit
0XD�
�
3
CPL C
Complement carry flag
0XB3
1
1
CPL bit
Complement di�ectl� add�essed bit
0XB�
�
3
ANL C� bit
AND directly addressed bit to carry flag
0X8�
�
�
ANL C�/bit
AND complement of di�ectl� add�essed bit to ca���
0XB0
�
�
ORL C� bit
OR directly addressed bit to carry flag
0X7�
�
�
ORL C�/bit
OR complement of di�ectl� add�essed bit to ca���
0XA0
�
�
MOV C� bit
Move directly addressed bit to carry flag
0XA�
�
�
MOV bit� C
Move carry flag to directly addressed bit
0X9�
�
3
Read-Modify-Write Instruction
Instructions that read a byte from SFR or internal RAM, modify it and rewrite it back, are called
“Read-Modify-Write” instructions. When the destination is an I/O port (P0-P3), or a Port bit, these
instructions read the output latch rather than the pin. Below table is RMW instruction set.
Mnemonic
Description
Code
Bytes Cycles
ANL di�ect� A
AND acc�m�lato� to di�ect
0x��
�
3
ANL di�ect� #data AND immediate data to di�ect
0x�3
3
4
ORL di�ect� A
OR acc�m�lato� to di�ect
0x4�
�
3
ORL di�ect� #data OR immediate data to di�ect
0x43
3
4
XRL di�ect� A
Excl�sive OR acc�m�lato� to di�ect
0x6�
�
3
XRL di�ect� #data Excl�sive OR immediate data to di�ect
0x63
3
4
�BC bit� �el
��mp if bit is set and clea� bit
0x10
3
4/�
(*)
CPL bit
Complement bit
0xB�
�
3
INC di�ect
Inc�ement di�ect
0x0�
�
3
INC @Ri
Inc�ement indi�ect
0x06-0x07
1
3
DEC di�ect
Dec�ement di�ect
0x1�
�
3
DEC @Ri
Dec�ement indi�ect
0x16-0x17
1
3
D�NZ di�ect� �el
Dec�ement and j�mp if not ze�o
0xD�
3
4/�
(*)
MOV bit� C
Move carry flag and direct bit
0x9�
�
3
CLR bit
Clea� bit
0xC�
�
3
SETB bit
Set bit
0xD�
�
3
Note:
(*) If the condition is t��e� the machine c�cle will add 1.