Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

3/20/23, 12:11 AM 8085 Data-transfer Instructions

8085 Data-transfer Instructions

Following is the table showing the list of Data-transfer instructions with their meanings.

https://www.tutorialspoint.com/microprocessor/microprocessor_8085_data_transfer_instructions.htm 1/5
3/20/23, 12:11 AM 8085 Data-transfer Instructions

Opcode Operand Meaning Explanation

This instruction copies the contents


Rd, Sc of the source register into the
Copy from the
MOV M, Sc source (Sc) to the destination register without any
destination(Dt) alteration.
Dt, M
Example − MOV K, L

The 8-bit data is stored in the


Rd, data Move immediate 8-
MVI destination register or memory.
M, data bit
Example − MVI K, 55L

The contents of a memory location,


specified by a 16-bit address in the
Load the operand, are copied to the
LDA 16-bit address
accumulator accumulator.

Example − LDA 2034K

The contents of the designated


register pair point to a memory
Load the location. This instruction copies the
LDAX B/D Reg. pair contents of that memory location into
accumulator indirect
the accumulator.

Example − LDAX K

The instruction loads 16-bit data in


Load the register the register pair designated in the
LXI Reg. pair, 16-bit data
pair immediate register or the memory.

Example − LXI K, 3225L

LHLD 16-bit address Load H and L The instruction copies the contents
registers direct of the memory location pointed out
by the address into register L and
copies the contents of the next
memory location into register H.

https://www.tutorialspoint.com/microprocessor/microprocessor_8085_data_transfer_instructions.htm 2/5
3/20/23, 12:11 AM 8085 Data-transfer Instructions

Example − LHLD 3225K

The contents of the accumulator are


copied into the memory location
specified by the operand.

This is a 3-byte instruction, the


STA 16-bit address 16-bit address
second byte specifies the low-order
address and the third byte specifies
the high-order address.

Example − STA 325K

The contents of the accumulator are


copied into the memory location
Store the specified by the contents of the
STAX 16-bit address
accumulator indirect operand.

Example − STAX K

The contents of register L are stored


in the memory location specified by
the 16-bit address in the operand
and the contents of H register are
stored into the next memory location
Store H and L by incrementing the operand.
SHLD 16-bit address
registers direct
This is a 3-byte instruction, the
second byte specifies the low-order
address and the third byte specifies
the high-order address.

Example − SHLD 3225K

The contents of register H are


exchanged with the contents of
Exchange H and L register D, and the contents of
XCHG None
with D and E register L are exchanged with the
contents of register E.

Example − XCHG

https://www.tutorialspoint.com/microprocessor/microprocessor_8085_data_transfer_instructions.htm 3/5
3/20/23, 12:11 AM 8085 Data-transfer Instructions

The instruction loads the contents of


the H and L registers into the stack
pointer register. The contents of the
Copy H and L
H register provide the high-order
SPHL None registers to the
address and the contents of the L
stack pointer register provide the low-order
address.

Example − SPHL

The contents of the L register are


exchanged with the stack location
pointed out by the contents of the
stack pointer register.
Exchange H and L
XTHL None
with top of stack The contents of the H register are
exchanged with the next stack
location (SP+1).

Example − XTHL

The contents of the register pair


designated in the operand are
copied onto the stack in the following
sequence.

The stack pointer register is


decremented and the contents of the
Push the register high order register (B, D, H, A) are
PUSH Reg. pair
pair onto the stack copied into that location.

The stack pointer register is


decremented again and the contents
of the low-order register (C, E, L,
flags) are copied to that location.

Example − PUSH K

POP Reg. pair Pop off stack to the The contents of the memory location
register pair pointed out by the stack pointer
register are copied to the low-order

https://www.tutorialspoint.com/microprocessor/microprocessor_8085_data_transfer_instructions.htm 4/5
3/20/23, 12:11 AM 8085 Data-transfer Instructions

register (C, E, L, status flags) of the


operand.

The stack pointer is incremented by


1 and the contents of that memory
location are copied to the high-order
register (B, D, H, A) of the operand.

The stack pointer register is again


incremented by 1.

Example − POPK

Output the data The contents of the accumulator are


from the copied into the I/O port specified by
OUT 8-bit port address accumulator to a the operand.
port with 8bit
Example − OUT K9L
address

Input data to The contents of the input port


accumulator from a designated in the operand are read
IN 8-bit port address
port with 8-bit and loaded into the accumulator.
address Example − IN5KL

https://www.tutorialspoint.com/microprocessor/microprocessor_8085_data_transfer_instructions.htm 5/5

You might also like