Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
MOV A, a8 2 1 1
MOV A, @Ri 1 1 2
MOV A, #d8 2 1 1
MOV Rn, A 1 1 8
MOV Rn, a8 2 2 8
MOV a8, A 2 1 1
MOV a8, Rn 2 2 8
MOV a8, a8 3 2 1
MOV @Ri, A 1 1 2
Example:-
MOV R2, 35H
It is an example of MOV Rn, a8. The content of location 35H of internal memory is
moved to register R2.
PUSH 0F0H
This is an example of PUSH a8. Here the contents of register B is pushed on
the stack.
POP 40H
This is like POP a8. It indicates the content of stack top is moved to the internal RAM
location 40H.
• Arithmetic group in 8051
ADD A, Rn 1 1 8
ADD A, a8 2 1 1
ADD A, @Ri 1 1 2
ADD A, #d8 2 1 1
ADDC A, Rn 1 1 8
ADDC A, a8 2 1 1
INC @Ri 1 1 2
• Continue:-
ADDC A, @Ri 1 1 2
ADDC A, #d8 2 1 1
SUBB A, Rn 1 1 8
SUBB A, a8 2 1 1
SUBB A, @Ri 1 1 2
SUBB A, #d8 2 1 1
INC A 1 1 1
INC Rn 1 1 8
INC a8 2 1 1
• Example:-
1
ADDC A, @R1
This is an instruction of type ADDC A, @Ri. It means the content on internal
RAM location which is pointed by register R1 is added to A.
2
SUBB A, R5
This is SUBB A, Rn type instruction. The SUBBstands for Subtract with borrow.
So the content of R5 will be subtracted from A.
3
INC 40H
This is a type of INC a8. Here the content in local RAM whose address is 40H,
it is increased by 1.
• Logical Group in 8051
ANL A, Rn 1 1 8
ANL A, a8 2 1 1
ANL A, @Ri 1 1 2
ANL A, #d8 2 1 1
ANL a8, A 2 1 1
ORL A, Rn 1 1 8
• Program branch group in 8051
ACALL addr11 2 2 8
LCALL addr16 3 2 1
RET 1 2 1
RETI 1 2 1
AJMP addr11 2 2 8
LJMP addr16 3 2 1