Monday, August 30, 2010

Instruction Set Summary

Arithmetic Instructions

Instruction
Description
Byte Cycle
ADD A, Rn
Add register to accumulator
1 1
ADD A, direct
Add direct byte to accumulator
1 1
ADD A, @Ri
Add indirect RAM to accumulator
1 1
ADD A, #data
Add immediate data to accumulator
2 1
ADDC A, Rn
Add register to accumulator with carry flag
1 1
ADDC A, direct
Add direct byte to A with carry flag
2 1
ADDC A, @Ri
Add indirect RAM to A with carry flag
1 1
ADDC A, #data
Add immediate data to A with carry flag
2 1
SUBB A, Rn
Subtract register from A with borrow
1 1
SUBB A, direct
Subtract direct byte from A with borrow
2 1
SUBB A, @Ri
Subtract indirect RAM from A with borrow
1 1
SUBB A, #data
Subtract immediate data from A with borrow
2 1
INC A
Increment accumulator
1 1
INC Rn
Increment register
1 1
INC direct
Increment direct byte
2 1
INC @Ri
Increment indirect RAM
1 1
DEC A
Decrement accumulator
1 1
DEC Rn
Decrement register
1 1
DEC direct
Decrement direct byte
2 1
DEC @Ri
Decrement indirect RAM
1 1
INC DPTR
Increment data pointer
1 2
MUL AB
Multiply A and B
1 4
DIV AB
Divide A by B
1 4
DA A
Decimal adjust accumulator
1 1

Logical Instructions

Instruction
Description
Byte Cycle
ANL A, Rn
AND register to accumulator
1 1
ANL A, direct
AND direct byte to accumulator
2 1
ANL A, @Ri
AND indirect RAM to accumulator
1 1
ANL A, #data
AND immediate data to accumulator
2 1
ANL direct, A
AND accumulator to direct byte
2 1
ANL direct, #data
AND immediate data to direct byte
3 2
ORL A, Rn
OR register to accumulator
1 1
ORL A, direct
OR direct byte to accumulator
2 1
ORL A, @Ri
OR indirect RAM to accumulator
1 1
ORL A, #data
OR immediate data to accumulator
2 1
ORL direct, A
OR accumulator to direct byte
2 1
ORL direct, #data
OR immediate data to direct byte
3 2
XRL A, Rn
Exclusive OR register to accumulator
1 1
XRL A direct
Exclusive OR direct byte to accumulator
2 1
XRL A, @Ri
Exclusive OR indirect RAM to accumulator
1 1
XRL A, #data
Exclusive OR immediate data to accumulator
2 1
XRL direct, A
Exclusive OR accumulator to direct byte
2 1
XRL direct, #data
Exclusive OR immediate data to direct byte
3 2
CLR A
Clear accumulator
1 1
CPL A
Complement accumulator
1 1
RL A
Rotate accumulator left
1 1
RLC A
Rotate accumulator left through carry
1 1
RR A
Rotate accumulator right
1 1
RRC A
Rotate accumulator right through carry
1 1
SWAP A
Swap nibbles within the accumulator 1 1

Contd...

No comments:

Post a Comment