8085 Microprocessor :: Data Transfer Instructions

i) MOV
Syntax: MOV Rd, Rs
  • MOV M, Rs
  • MOV Rd, M
ii) MVI
Syntax: MVI Rd/M, 8-bit data

iii) LXI
Syntax: LXI Reg. pair, 16-bit data
  • e.g. LXI B, 8085    ;B<=80, C<=85
iv) LDA
Syntax: LDA 16-bit address
  • e.g. LDA 8085    ;A<=M[8085]
v) STA
Syntax: STA 16-bit address
  • e.g. STA 8085    ;M[8085]<=A
vi) LDAX
Syntax: LDAX B/D register pair
  • e.g. LDAX B    ;A<=M[8050] (if B=80, C=50)
vii) STAX
Syntax: STAX B/D register pair
  • e.g. STAX B    ;M[8050]<=A (if B=80, C=50)
viii) LHLD
Syntax: LHLD 16-bit address
  • e.g. LHLD 8085    ;L<=M[8085], H<=M[8086]
ix) SHLD
Syntax: SHLD 16-bit address
  • e.g. SHLD 8085    ;M[8085]<=L, M[8086]<=H
x) XCHG
Syntax: XCHG ;interchanges between D and H; and E and L
  • H<=D and L<=E
  • D<=H and E<=L
xi) IN
Syntax: IN 8-bit port address
  • e.g. IN 15    ;data received from port address 15 is transferred into Accumulator.
xii) OUT
Syntax: OUT 8-bit port address
  • e.g. OUT 15    ;content of Accumulator is transferred to port address 15.

No comments:

Post a Comment