Skip to content
Related Articles

Related Articles

Data transfer instructions in 8085 microprocessor

Improve Article
Save Article
  • Difficulty Level : Easy
  • Last Updated : 03 Nov, 2022
Improve Article
Save 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:

OPCODEOPERANDEXPLANATIONNo. of bytesMachine cyclesNo. of  T-statesEXAMPLE
MOVRd, RsRd = Rs11 opcode fetch4MOV A, B
MOVRd, MRd = Mc1

1 opcode fetch

1 memory read

7MOV A, 2050
MOVM, RsM = Rs1

1 opcode fetch

1 memory write

7MOV 2050, A
MVIRd, 8-bit dataRd = 8-bit data2

1 opcode fetch

1 memory read

7MVI A, 50
MVIM, 8-bit dataM = 8-bit data2

1 opcode fetch

1 memory read

1 memory write

10MVI 2050, 50
LDA16-bit addressA = contents at address3

1 opcode fetch

2 memory reads for 16-bit data

1 memory read for reading content at 16-bit address

13LDA 2050
STA16-bit addresscontents at address = A3

1 opcode fetch

2 memory reads

1 memory write

13STA 2050
LHLD16-bit addressdirectly loads at H & L registers3

1 opcode fetch

2 memory reads for reading 16-bit data

2 memory reads for loading H and L registers

16LHLD 2050
SHLD16-bit addressdirectly stores from H & L registers3

1 opcode fetch

2 memory reads for reading 16-bit data

2 memory write 

16SHLD 2050
LXIr.p., 16-bit dataloads the specified register pair with data3

1 opcode fetch

2 memory reads

10LXI H, 3050
LDAXr.p.indirectly loads at the accumulator A1

1 opcode fetch

1 memory read

7LDAX H
STAX16-bit addressindirectly stores from the accumulator A1

1 opcode fetch

1 memory write

7STAX 2050
XCHGnoneexchanges H with D, and L with E11 opcode fetch4XCHG
XTHLnoneexchanges the content of the top of the stack with the content of HL pair1

1 opcode fetch

2 memory reads

2 memory writes

16XTHL
PUSHr.p.pushes r.p. to the stack1

1 opcode fetch

2 memory writes

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

1 opcode fetch

2 memory reads

10POP H
IN8-bit port addressinputs contents of the specified port to A2

1 opcode fetch

1 memory read

1 I/O read

10IN 15
OUT8-bit port addressoutputs contents of A to the specified port2

1 opcode fetch

1 memory read

1 I/O write

10OUT 15
       

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

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!