Explain 8085 data transfer instructions with suitable examples.
1. MOV Rd , Rs / M , Rs / Rd , M
Copy from source to destination eg. MOV B ,C / B ,M
2. MVI Rd , DATA / M , DATA
Move Immediate 8-bit eg. MVI Rd , 25H
3. LDA 16-bit address
Load accumulator the contents of memory is copied to the accumulator
Eg. LDA 2030H
4. LDAX Rp
Load accumulator indirect. The content of Rp point to a memory location this instruction copied the contents of memory location.
Eg. LDAX B
5. LXI Rp , data
Load register pair immediate
Load 16-bit data in Rp
Ex. LXI H , 2040H
6. LHLD 16-bit address
Load H & L register direct.
Copy the content of memory location point out by 16-bit address into reg. L & copy next memory ex. LHLD 2040H
7. SHLD 16-bit address
Store H & L registers direct.
Contents of reg. L is stored into memory location & content of reg. H is stored into next memory location.
Ex. SHLD 2040H
8. STA 16-bit address
Store register to 16-bit address memory location.
Content of accumulator are copied into the memory location.
Ex. STA 3040H
9. STAX Rp
Store accumulator indirect.
Content of Rp is store into memory location.
Ex. STAX B
10. XCHG
Exchange H & L with D & E.
H exchange with D & L exchange with E
11. SPHL
Copy H & L register to the stack pointer
Ex. SPHL
12. XTHL
Exchange H & L with top of stack.
Content of L exchange with stack location.
Content of H exchange with next stack location.
Ex. XTHL
13. PUSH Rp
Push register pair onto stack.
Dec. + copy
Ex. PUSH B
14. POP Rp
Pop stack to register pair.
Copy + Inc.
Ex. POP B
15. IN 8-bit port address
Input data to accumulator from a port.
Move data from port to accumulator.
Ex. IN 80H
16. OUT 8-bit port address
Output data from accumulator to port
Ex. OUT F8 H
Follow Us