0% found this document useful (0 votes)
133 views5 pages

8085 Data-Transfer Instructions

This document summarizes the data transfer instructions of the 8085 microprocessor. It includes a table listing the opcode, operand, meaning, and explanation of various instructions like MOV, MVI, LDA, STA, LHLD, and others. These instructions are used to transfer data between registers, memory locations, and the accumulator. Some instructions load data from a source to a destination, while others store data from a register or accumulator to memory.

Uploaded by

AmalTSathyan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
133 views5 pages

8085 Data-Transfer Instructions

This document summarizes the data transfer instructions of the 8085 microprocessor. It includes a table listing the opcode, operand, meaning, and explanation of various instructions like MOV, MVI, LDA, STA, LHLD, and others. These instructions are used to transfer data between registers, memory locations, and the accumulator. Some instructions load data from a source to a destination, while others store data from a register or accumulator to memory.

Uploaded by

AmalTSathyan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

8085 Data-transfer Instructions - Tutorialspoint https://www.tutorialspoint.com/microprocessor/...

8085 Data-transfer Instructions


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

1 of 5 23/10/19, 11:18 am
8085 Data-transfer Instructions - Tutorialspoint https://www.tutorialspoint.com/microprocessor/...

Opcode Operand Meaning Explanation

This instruction copies the


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

The 8-bit data is stored in the


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

The contents of a memory


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

Example − LDA 2034K

The contents of the designated


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

Example − LDAX K

The instruction loads 16-bit data


Reg. pair, 16-bit Load the register in the register pair designated in
LXI the register or the memory.
data pair immediate
Example − LXI K, 3225L

The instruction copies the


contents of the memory location

pointed out by the address into


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

Example − LHLD 3225K

2 of 5 23/10/19, 11:18 am
8085 Data-transfer Instructions - Tutorialspoint https://www.tutorialspoint.com/microprocessor/...

The contents of the accumulator


are copied into the memory
location specified by the
operand.

STA 16-bit address 16-bit address This is a 3-byte instruction, the


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

Example − STA 325K

The contents of the accumulator


Store the are copied into the memory
STAX 16-bit address accumulator location specified by the contents
indirect of the 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 by
SHLD 16-bit address Store H and L incrementing the operand.
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 register L are exchanged with the
with D and E
contents of register E.

Example − XCHG

Copy H and L The instruction loads the


SPHL None
registers to the contents of the H and L registers

3 of 5 23/10/19, 11:18 am
8085 Data-transfer Instructions - Tutorialspoint https://www.tutorialspoint.com/microprocessor/...

into the stack pointer register.


The contents of the H register
provide the high-order address
stack pointer and the contents of the L 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
Exchange H and L register.
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
Push the register the high order register (B, D, H,
PUSH Reg. pair A) are copied into that location.
pair onto the stack
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

The contents of the memory


location pointed out by the stack
pointer register are copied to the
Pop off stack to the
POP Reg. pair low-order register (C, E, L, status
register pair
flags) of the operand.

The stack pointer is incremented

4 of 5 23/10/19, 11:18 am
8085 Data-transfer Instructions - Tutorialspoint https://www.tutorialspoint.com/microprocessor/...

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


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

The contents of the input port


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

5 of 5 23/10/19, 11:18 am

You might also like