0% found this document useful (0 votes)
77 views

8085 Data-Transfer Instructions

The document summarizes the data transfer instructions of the 8085 microprocessor. It includes instructions like MOV to move data, MVI to load immediate data, LDA to load the accumulator, LXI to load a register pair, PUSH to push registers onto the stack and POP to pop registers off the stack. It also describes instructions to input/output data from ports like IN and OUT.

Uploaded by

Bernard Braingix
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)
77 views

8085 Data-Transfer Instructions

The document summarizes the data transfer instructions of the 8085 microprocessor. It includes instructions like MOV to move data, MVI to load immediate data, LDA to load the accumulator, LXI to load a register pair, PUSH to push registers onto the stack and POP to pop registers off the stack. It also describes instructions to input/output data from ports like IN and OUT.

Uploaded by

Bernard Braingix
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

AD If You Suffer From Knee and Hip


Pain You Should Read This
news4ppl.com

Ad

AD If You Suffer From Knee and Hip


Pain You Should Read This
news4ppl.com

Ad

Following is the table showing the list of Data-transfer instructions with their meanings.
Opcode Operand Meaning Explanation

Copy from the This instruction copies the contents of the


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

Move The 8-bit data is stored in the destination


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

The contents of a memory location,


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

The contents of the designated register


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

Example − LDAX K

The instruction loads 16-bit data in the


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

The instruction copies the contents of the


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

Example − LHLD 3225K

STA 16-bit address 16-bit address The contents of the accumulator are
copied into the memory location specified
by the operand.

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 are


Store the copied into the memory location specified
STAX 16-bit address accumulator by the contents of the operand.
indirect
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
Store H and L location 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


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

Example − XCHG

The instruction loads the contents of the H


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

Example − SPHL

XTHL None Exchange H The contents of the L register are


and L with top exchanged with the stack location pointed
of stack out by the contents of the stack pointer
register.

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


Push the and the contents of the high order register
PUSH Reg. pair register pair (B, D, H, A) are copied into that location.
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 low-order register (C, E, L,
status flags) of the operand.

Pop off stack The stack pointer is incremented by 1 and


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

The stack pointer register is again


incremented by 1.

Example − POPK

OUT 8-bit port address Output the The contents of the accumulator are
data from the copied into the I/O port specified by the
accumulator operand.

Example − OUT K9L


to a port with
8bit address

Input data to The contents of the input port designated


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

You might also like