0% found this document useful (0 votes)
53 views4 pages

LNM 6

Uploaded by

kanhiya
This document provides a classification and listing of instructions for the 8051 assembly language. It separates instructions into categories such as data transfer, arithmetic, boolean, branch, and logical. It also lists directives that can be used in 8051 assembly language programs. The document serves as a reference for the different instruction types and directives available to programmers developing in 8051 assembly language.

Copyright:

Attribution Non-Commercial (BY-NC)

Available Formats

Download as PDF, TXT or read online from Scribd
Download as pdf or txt
0% found this document useful (0 votes)
53 views4 pages

LNM 6

Uploaded by

kanhiya
This document provides a classification and listing of instructions for the 8051 assembly language. It separates instructions into categories such as data transfer, arithmetic, boolean, branch, and logical. It also lists directives that can be used in 8051 assembly language programs. The document serves as a reference for the different instruction types and directives available to programmers developing in 8051 assembly language.

Copyright:

Attribution Non-Commercial (BY-NC)

Available Formats

Download as PDF, TXT or read online from Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 4

Microprocessors and Microcontrollers/Assembly language of 8051 Lecture Notes

Classification of Instructions

I N S TR U C TI O N S

DATA TRANSFER ARITHMETIC

BRANCH B OOL E A N L OGI C A L


Data transfer Instructions
• Mov A, Rn
• Mov A, Direct
• Mov A, @Ri
• Mov A, #Data8
• Mov Dptr, #Data16
• Mov Rn, A
• Mov Rn, Direct
• Mov Rn, #Data8
• Mov Direct, A
• Mov Direct, Rn
• Mov Direct, #Data8
• Mov Direct, Direct
• Mov Direct, @Ri
• Mov Direct, # Data8
• Mov @Ri, A
• Mov @Ri, Direct
• Mov @Ri, #Data8
• Movx A, @Ri
• Movx A, @Dptr
• Movx @Ri, A
• Movx @dptr, A
• Movc A, @A+Dptr
• Movc A, @A+Pc
• Push Direct
• Pop Direct
• Xch A, Rn
• Xch A, Direct

M. Krishna Kumar/IISc. Bangalore M6/V1/June 04/1


Microprocessors and Microcontrollers/Assembly language of 8051 Lecture Notes

• Xch A, @Ri
• Xchd A, @Ri
Boolean Instructions
• Clr C
• Clr Bit
• Setb C
• Setb Bit
• Cpl C
• Cpl Bit
• Anl C, Bit
• Anl C, /Bit
• Orl C, Bit
• Orl C, /Bit
• Mov C, Bit
• Mov Bit, C
Branch Instructions
• Jc Reladdr
• Jnc Reladdr
• Jb Bit, Reladdr
• Jnb Bit, Reladdr
• Jbc Bit, Reladdr
Arithmetic Instructions
• Add A, Rn
• Add A, Direct
• Add A, @Ri
• Add A, #Data8
• Addc A, Rn
• Addc A, Direct
• Addc A, @Ri
• Addc A, #Data8
• Subb A, Rn
• Subb A, Direct
• Subb A, @Ri
• Subb A, #Data8
• Inc A
• Inc Rn
• Inc Direct
• Inc @Ri
• Inc Dptr
• Dec A
• Dec Rn
• Dec Direct
• Dec @Ri
• Mul AB
• Div AB
• DA A

M. Krishna Kumar/IISc. Bangalore M6/V1/June 04/2


Microprocessors and Microcontrollers/Assembly language of 8051 Lecture Notes

Logical Instructions
• Anl A, Rn
• Anl A, Direct
• Anl A, @Ri
• Anl A, #Data8
• Anl Direct, A
• Anl Direct, #Data8
• Orl A, Rn
• Orl A, Direct
• Orl A, @Ri
• Orl A, #Data8
• Orl Direct, A
• Orl Direct, #Data8
• Xrl A, Rn
• Xrl A, Direct
• Xrl A, @Ri
• Xrl A, #Data8
• Xrl Direct, A
• Xrl Direct, #Data8
• Clr A
• Cpl A
• Rl A
• Rlc A
• Rr A
• Rrc A
• Swap A
Branch Instructions
• Acall Addr11
• Lcall Addr16
• Ret
• Reti
• Ajmp Addr11
• Ljmp Addr16
• Sjmp Reladdr
• Jmp @A+Dptr
• Jz Reladdr
• Jnz Reladdr
• Cjne Rn, #Data, Reladdr
• Cjne @Ri, #Data, Reladdr
• Cjne A, #Data, Reladdr
• Cjne A, Direct, Reladdr
• Djnz Rn, Reladdr
• Djnz Direct, Reladdr
• Nop
Assembly directives
Directives:

M. Krishna Kumar/IISc. Bangalore M6/V1/June 04/3


Microprocessors and Microcontrollers/Assembly language of 8051 Lecture Notes

? FILE Directive
? LINE Directive
?SYMB Directive
BSEG Directive
CODE Directive
CSEG Directive
DATA Directive
DB Directive
DBIT Directive
DS Directive
DSEG Directive
DW Directive
END Directive
EQU Directive
EXTRN Directive
IDATA Directive
ISEG Directive
NAME Directive
ORG Directive
PUBLIC Directive
RSEG Directive
SEGMENT Directive
SET Directive
USING Directive
XDATA Directive
XSEG Directive

M. Krishna Kumar/IISc. Bangalore M6/V1/June 04/4

You might also like