STC12C5Axx
Technical Summary
73
ARITHEMATIC OPERATIONS
MNEMONIC
DESCRIPTION
BYT CYC
ADD A, Rn
ADD REGISTER TO ACC
1
2
ADD A, direct
ADD DIRECT BYTE TO ACC
2
3
ADD A, @Ri
ADD INDIRECT RAM TO ACC
1
3
ADD A, #data
ADD IMMEDIATE DATA TO ACC
2
2
ADDC A, Rn
ADD REGISTER TO ACC WITH CARRY
1
2
ADDC A, direct
ADD DIRECT BYTE TO ACC WITH CARRY
2
3
ADDC A, @Ri
ADD INDIRECT RAM TO ACC WITH CARRY
1
3
ADDC A, #data
ADD IMMEDIATE DATA TO ACC WITH CARRY
2
2
SUBB A, Rn
SUBTRACT REGISTER FROM ACC WITH BORROW
1
2
SUBB A, direct
SUBTRACT DIRECT BYTE FROM ACC WITH BORROW
2
3
SUBB A, @Ri
SUBTRACT INDIRECT RAM FROM ACC WITH BORROW
1
3
SUBB A, #data
SUBTRACT IMMEDIATE DATA FROM ACC WITH BORROW
2
2
INC A
INCREMENT ACC
1
2
INC Rn
INCREMENT REGISTER
1
3
INC direct
INCREMENT DIRECT BYTE
2
4
INC @Ri
INCREMENT INDIRECT RAM
1
4
DEC A
DECREMENT ACC
1
2
DEC Rn
DECREMENT REGISTER
1
3
DEC direct
DECREMENT DIRECT BYTE
2
4
DEC @Ri
DECREMENT INDIRECT RAM
1
4
INC DPTR
INCREMENT DPTR
1
1
MUL AB
MULTIPLY A AND B
1
4
DIV AB
DIVIDE A BY B
1
5
DA A
DECIMAL ADJUST ACC
1
4
LOGIC OPERATION
MNEMONIC
DESCRIPTION
BYT CYC
ANL A, Rn
AND REGISTER TO ACC
1
2
ANL A, direct
AND DIRECT BYTE TO ACC
2
3
ANL A, @Ri
AND INDIRECT RAM TO ACC
1
3
ANL A, #data
AND IMMEDIATE DATA TO ACC
2
2
ANL direct, A
AND ACC TO DIRECT BYTE
2
4
ANL direct, #data
AND IMMEDIATE DATA TO DIRECT BYTE
3
4
ORL A, Rn
OR REGISTER TO ACC
1
2
ORL A, direct
OR DIRECT BYTE TO ACC
2
3
ORL A, @Ri
OR INDIRECT RAM TO ACC
1
3
ORL A, #data
OR IMMEDIATE DATA TO ACC
2
2
ORL direct, A
OR ACC TO DIRECT BYTE
2
4
ORL direct, #data
OR IMMEDIATE DATA TO DIRECT BYTE
3
4
XRL A, Rn
EXCLUSIVE-OR REGISTER TO ACC
1
2
XRL A, direct
EXCLUSIVE-OR DIRECT BYTE TO ACC
2
3
XRL A, @Ri
EXCLUSIVE-OR INDIRECT RAM TO ACC
1
3
XRL A, #data
EXCLUSIVE-OR IMMEDIATE DATA TO ACC
2
2
XRL direct, A
EXCLUSIVE-OR ACC TO DIRECT BYTE
2
4
XRL direct, #data
EXCLUSIVE-OR IMMEDIATE DATA TO DIRECT BYTE
3
4
CLR A
CLEAR ACC
1
1
CPL A
COMPLEMENT ACC
1
2
RL A
ROTATE ACC LEFT
1
1
RLC A
ROTATE ACC LEFT THROUGH THE CARRY
1
1
RR A
ROTATE ACC RIGHT
1
1
RRC A
ROTATE ACC RIGHT THROUGH THE CARRY
1
1
SWAP A
SWAP NIBBLES WITHIN THE ACC
1
1
BOOLEAN VARIABLE MANIPULATION
MNEMONIC
DESCRIPTION
BYT CYC
CLR C
CLEAR CARRY
1
1
CLR bit
CLEAR DIRECT BIT
2
4
SETB C
SET CARRY
1
1
SETB bit
SET DIRECT BIT
2
4
CPL C
COMPLEMENT CARRY
1
1
CPL bit
COMPLEMENT DIRECT BIT
2
4
ANL C, bit
AND DIRECT BIT TO CARRY
2
3
http://www.DataSheet4U.net/
datasheet pdf - http://www.DataSheet4U.net/