Skip to content
Related Articles
Open in App
Not now

Related Articles

Data transfer instructions in 8085 microprocessor

Improve Article
Save Article
Like Article
  • Difficulty Level : Easy
  • Last Updated : 03 Nov, 2022
Improve Article
Save Article
Like Article

Data transfer instructions are the instructions that transfer data in the microprocessor. They are also called copy instructions. Here is the following is the table showing the list of logical instructions:

OPCODE OPERAND EXPLANATION No. of bytes Machine cycles No. of  T-states EXAMPLE
MOV Rd, Rs Rd = Rs 1 1 opcode fetch 4 MOV A, B
MOV Rd, M Rd = Mc 1

1 opcode fetch

1 memory read

7 MOV A, 2050
MOV M, Rs M = Rs 1

1 opcode fetch

1 memory write

7 MOV 2050, A
MVI Rd, 8-bit data Rd = 8-bit data 2

1 opcode fetch

1 memory read

7 MVI A, 50
MVI M, 8-bit data M = 8-bit data 2

1 opcode fetch

1 memory read

1 memory write

10 MVI 2050, 50
LDA 16-bit address A = contents at address 3

1 opcode fetch

2 memory reads for 16-bit data

1 memory read for reading content at 16-bit address

13 LDA 2050
STA 16-bit address contents at address = A 3

1 opcode fetch

2 memory reads

1 memory write

13 STA 2050
LHLD 16-bit address directly loads at H & L registers 3

1 opcode fetch

2 memory reads for reading 16-bit data

2 memory reads for loading H and L registers

16 LHLD 2050
SHLD 16-bit address directly stores from H & L registers 3

1 opcode fetch

2 memory reads for reading 16-bit data

2 memory write 

16 SHLD 2050
LXI r.p., 16-bit data loads the specified register pair with data 3

1 opcode fetch

2 memory reads

10 LXI H, 3050
LDAX r.p. indirectly loads at the accumulator A 1

1 opcode fetch

1 memory read

7 LDAX H
STAX 16-bit address indirectly stores from the accumulator A 1

1 opcode fetch

1 memory write

7 STAX 2050
XCHG none exchanges H with D, and L with E 1 1 opcode fetch 4 XCHG
XTHL none exchanges the content of the top of the stack with the content of HL pair 1

1 opcode fetch

2 memory reads

2 memory writes

16 XTHL
PUSH r.p. pushes r.p. to the stack 1

1 opcode fetch

2 memory writes

12 PUSH H
POP r.p. pops the stack to r.p. 1

1 opcode fetch

2 memory reads

10 POP H
IN 8-bit port address inputs contents of the specified port to A 2

1 opcode fetch

1 memory read

1 I/O read

10 IN 15
OUT 8-bit port address outputs contents of A to the specified port 2

1 opcode fetch

1 memory read

1 I/O write

10 OUT 15
             

In the table, 
R stands for register 
M stands for memory 
r.p. stands for register pair 

My Personal Notes arrow_drop_up
Like Article
Save Article
Related Articles

Start Your Coding Journey Now!