Data transfer instructions in 8086 microprocessor

MicroprocessorMicrocontroller8086

These instructions are used to transfer the data from the source operand to the destination operand. These are also known as copy instructions.

Let us see the data transfer instructions of 8086 microprocessor. Here the D and S are destination and source respectively. D and S can be either register, data or memory address.

Opcode
Operand
Description
MOV
D,S
Used to copy the byte or word from the provided source to the provided destination.
PUSH
D
Used to put a word at the top of the stack.
POP
D
Used to get a word from the top of the stack to the provided location.
PUSHA
----
Used to put all the registers into the stack.
POPA
----
Used to get words from the stack to all registers.
XCHG
D,S
Used to exchange the data from two locations.
IN
D,S
Used to read a byte or word from the provided port to the accumulator.
OUT
D,S
Used to send out a byte or word from the accumulator to the provided port.
XLAT
----
Used to translate a byte in AL using a table in the memory.
LAHF
----
Used to load AH with the low byte of the flag register.
SAHF
----
Used to store AH register to low byte of the flag register.
PUSHF
----
Used to copy the flag register at the top of the stack.
POPF
----
Used to copy a word at the top of the stack to the flag register.

 

 

raja
Published on 11-Mar-2019 15:55:17
Advertisements