Sunday, March 2, 2025

The 8086 microprocessor - instructions


  • The 8086 microprocessor supports 8 types of instructions
  • Data Transfer Instructions
  • Arithmetic Instructions
  • Bit Manipulation Instructions
  • String Instructions
  • Program Execution Transfer Instructions (Branch & Loop Instructions)
  • Processor Control Instructions
  • Iteration Control Instructions
  • Interrupt Instructions

The data transfer instructions are used to transfer data from one location to another. This transfer of data can be either from register to register, register to memory or memory to register.




It is important to note here that the memory to memory transfer of data directly is not possible.

Following are some instructions that are used for data transfer purpose:

  1. MOV
  2. PUSH
  3. POP
  4. XCHG
  5. LAHF
  6. SAHF
  7. IN
  8. OUT
  9. LDS
  10. LES


The table showing the list of data transfer instructions with Example 


OPCODEOPERANDEXPLANATIONEXAMPLE
MOVD, SD = SMOV AX, [SI]
PUSHDpushes D to the stackPUSH DX
POPDpops the stack to DPOP AS
PUSHAnoneput all the registers into the stackPUSHA
POPAnonegets words from the stack to all registersPOPA
XCHGD, Sexchanges contents of D and SXCHG [2050], AX
IND, Scopies a byte or word from S to DIN AX, DX
OUTD, Scopies a byte or word from D to SOUT 05, AL
XLATnonetranslates a byte in AL using a table in the memoryXLAT
LAHFnoneloads AH with the lower byte of the flag registerLAHF
SAHFnonestores AH register to lower byte of the flag registerSAHF
PUSHFnonecopies the flag register at the top of the stackPUSHF
POPFnonecopies a word at the top of the stack to the flag registerPOPF

                            


"This Content Sponsored by Buymote Shopping app
BuyMote E-Shopping Application is One of the Online Shopping App
Now Available on Play Store & App Store (Buymote E-Shopping)
  1. Click Below Link and Install Application: https://buymote.shop/links/0f5993744a9213079a6b53e8

    Sponsor Content: #buymote #buymoteeshopping #buymoteonline #buymoteshopping #buymoteapplication"




No comments:

Post a Comment

Traffic Light using Arduino - A Beginner Project

  Traffic Light using Arduino - A Beginner Project Introduction In this project I will Demonstrate you how to make a very simple and very co...