- 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:
- MOV
- PUSH
- POP
- XCHG
- LAHF
- SAHF
- IN
- OUT
- LDS
- LES
The table showing the list of data transfer instructions with Example
| OPCODE | OPERAND | EXPLANATION | EXAMPLE |
|---|---|---|---|
| MOV | D, S | D = S | MOV AX, [SI] |
| PUSH | D | pushes D to the stack | PUSH DX |
| POP | D | pops the stack to D | POP AS |
| PUSHA | none | put all the registers into the stack | PUSHA |
| POPA | none | gets words from the stack to all registers | POPA |
| XCHG | D, S | exchanges contents of D and S | XCHG [2050], AX |
| IN | D, S | copies a byte or word from S to D | IN AX, DX |
| OUT | D, S | copies a byte or word from D to S | OUT 05, AL |
| XLAT | none | translates a byte in AL using a table in the memory | XLAT |
| LAHF | none | loads AH with the lower byte of the flag register | LAHF |
| SAHF | none | stores AH register to lower byte of the flag register | SAHF |
| PUSHF | none | copies the flag register at the top of the stack | PUSHF |
| POPF | none | copies a word at the top of the stack to the flag register | POPF |
Click Below Link and Install Application: https://buymote.shop/links/0f5993744a9213079a6b53e8
Sponsor Content: #buymote #buymoteeshopping #buymoteonline #buymoteshopping #buymoteapplication"
.jpeg)
No comments:
Post a Comment