SlideShare a Scribd company logo
1 of 25
B.RAMA PRABHA
ASSISTANT PROFESSOR,
DEPARTMENT OF COMPUTER SCIENCE,
K.C.S.KASI NADAR COLLEGE OF ARTS & SCIENCE,
CHENNAI-21
“DATA TRANSFER INSTRUCTIONS
This group of instructions copy data from a
location called a source to another location called
a destination, without modifying the contents of the
source. In technical manuals, the term data
transfer is used for this copying function.
2
DATA TRANSFER (COPY)OPERATIONS
3
Several instructions are used to copy data. This sections concerned
with the following operations.
 MOV : Move (Copy a data byte)
 MVI : Move Immediate (Load a data byte directly)
 IN : Input from Port (Read a data byte from input device)
 OUT : Output to port (Write a data byte into output device)
 HLT :Halt (Stop processing and wait)
 NOP :No operation (Do not perform any operation)
MOV(MOVE)
MOV (Rd, Rs)
 This is a one byte instruction.
 This instruction MOV Rd, Rs copies the contents of the source register Rs into the
destination register Rd.
Example :MOV D, C
MOV M, Rs
 Copy content of Source register into memory whose address is pointed by HL Pair
of register
Example : MOV M,B
MOV Rd, M
 Copy content of memory into Source register. Memory locations address is pointed
by HL Pair of register.
Example : MOV B,M 4
MVI(MOVE IMMEDIATE)
MVI R,8 bit:
 This is a two byte instructions.
 Loads the 8 bit of second byte into the specified register.
Example : MVI B,05H
MVI M,data
 Loads the 8 bit data into a memory location, its location is
specified by the contents of the HL registers.
Example: MVI M, 57H
5
OUT(OUTPUT TO PORT)
OUT 8 bit port address
 This is a two byte instructions
 Sends (copies) the content of Accumulator(A) to the output port
specified in the second byte.
Example - OUT 50H
6
IN(INPUT FROM PORT)
IN 8 bit port address
 This is a two byte instructions
 Accepts data from the input port specified in the second byte and
loads in the Accumulator(A).
Example - IN 50H
7
HLT(HALT)
 This is a one byte instruction.
 The processor stops executing and enter into wait state.
 The address and data bus are high impedance state. No
register contents are affected.
Example : HLT
8
NOP(NO OPERATION)
NOP:
 This is a one byte instruction
 No operations are performed.
 Generally used to increase processing time.
9
16 bit data transfer
instructions
10
LXI D,DATA(LOAD REGISTER PAIR IMMEDIATE)
 LXI destination,(16-bit)Data
 It is a three bytes instruction
 Loading the destination with data 16-bit immediately, where the destination is
Registers Pair (BC, DE, HL) or 16 bit register SP.
Example : LXI B,3456
 Loading registers pair BC with data 3456 immediately where 34 loaded in register B
and 56 loaded in register C.
11
Opcode Operand Description
LXI Reg. pair, 16-bit data
Load the register pair
immediate
LDA 16 BIT DATA(LOAD THE ACCUMALATOR)
 It is a three bytes instruction
 The contents from the address (addresses in 8085 are 16-bit) are
copied to the accumulator register. The contents of the source location
remain unaltered.
 Example : LDA 2034H
 Contents stored at memory location 2034H are copied into the
accumulator.
12
Opcode Operand Description
LDA 16 BIT DATA Load the accumulator
LDAX(Load the accumulator indirect)
 It is a three bytes instruction
 The contents of the mentioned register pair point to a memory
location. LDAX instruction copies the contents of that particular
memory location into the accumulator register. Neither the contents of
the register pair nor that of the memory location is altered.
Example : LDAX B
13
Opcode Operand Description
LDAX
B/D Reg. pair Load the accumulator indirect
LHLD(Load H and L registers direct)
(Load the accumulator indirect)
 It is a three bytes instruction
 The LHLD instruction copies the contents of a specified memory
location pointed out by a 16-bit address into register L. The contents
of the next memory location are copied into register H.
Example : LHLD 2100H
14
Opcode Operand Description
LHLD 16-bit address Load H and L registers direct
STA(Store from the accumulator )
(Load H and L registers direct)
 It is a three bytes instruction
 The contents of the accumulator register are copied into a memory
location, which is specified by the operand.
Example : STA 1000H
15
Opcode Operand Description
STA 16-bit address value
Store from the accumulator into
a memory location
STAX(Store from the accumulator into register pair )
(Load H and L registers direct)
 It is a one bytes instruction
 The contents of the accumulator register are copied into the memory
specified by the register pair in the operand.
Example : STAX B
16
Opcode Operand Description
STAX Register pair
Store contents of the
accumulator into other register
pair
SHLD(Store from the HL register pair )
(Load H and L registers direct)
 It is a one bytes instruction
 The first 8-bit contents of the register L is stored into the memory
location specified by the 16-bit address. The next 8-bit contents of the
register H are stored into the subsequent memory location.
Example : SHLD 1200H 17
Opcode Operand Description
SHLD 16-bit address
Stores from the H-L registers
into the specified location
XCHG(EXCHANGE )
(Load H and L registers direct)
 It is a one bytes instruction
 The contents of register pair H-L are exchanged with the contents of
the register-pair D-E. The information stored in register H is
exchanged with that of D; similarly, that in register L is exchanged
with the contents of the register E.
Example : XCHG
18
Opcode Operand Description
XCHG None Exchange H-L with D-E
PUSH(PUSH IN TO STACK)
(Load H and L registers direct)
 It is a one bytes instruction
 The PUSH command pushes the contents of the register onto the stack
in 8085, which saves it as a temporary copy
Example : PUSH H
19
Opcode Operand Description
PUSH R Pushes onto stack
PUSH PSW(PUSH PSW ON TO STACK)
(Load H and L registers direct)
 It is a one bytes instruction
 The PUSH PSW command pushes the contents of the PSW (Program status word or
flag register) onto the stack in 8085, which saves it as a temporary copy.
 The stack pointer is first decremented by one, and the contents of the accumulator are
copied to that particular location. The stack pointer is again decremented by one, and
the contents of the flag register (PSW) are copied to that location.
Example : PUSH PSW 20
Opcode Operand Description
PUSH PSW Pushes PSW onto the stack
POP(PUSH FROM THE STACK)
(Load H and L registers direct)
 It is a one bytes instruction
 The POP command pops the contents stored onto the stack (where it might have been
saved as a temporary copy) to a
Example : POP B
21
Opcode Operand Description
POP R Pops from the stack
POP PSW(P0P PSW FROM THE STACK)
(Load H and L registers direct)
 It is a one bytes instruction
 The data at the memory location pointed by the stack pointer are copied to the flag
register. The stack pointer is incremented by one, and the contents of that location are
copied to the accumulator. The stack pointer is again incremented by one.
Example : POP PSW
22
Opcode Operand Description
POP PSW Pops PSW from the stack
SPHL
)
 It is a one bytes instruction
 Contents of L register are exchanged with top of the stack. The stack pointer is
incremented, and the contents of the next location of the stack are exchanged with H
register. The contents of the stack pointer register are not altered.
Example : SPHL
23
Opcode Operand Description
SPHL –
Move contents of HL pair to SP
register
XTHL
)
 It is a one bytes instruction
 Contents of L register are exchanged with top of the stack. The stack pointer is
incremented, and the contents of the next location of the stack are exchanged with H
register. The contents of the stack pointer register are not altered.
Example : XTHL
24
Opcode Operand Description
XTHL –
Exchange the contents at the top
of the stack with HL pair
“
25

More Related Content

What's hot

8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
RamaPrabha24
 
I. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptI. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.ppt
HAriesOa1
 

What's hot (20)

Addressing Modes Of 8086
Addressing Modes Of 8086Addressing Modes Of 8086
Addressing Modes Of 8086
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
8051 data types and directives
8051 data types and directives8051 data types and directives
8051 data types and directives
 
Computer registers
Computer registersComputer registers
Computer registers
 
8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
8051 Addressing Modes
8051 Addressing Modes8051 Addressing Modes
8051 Addressing Modes
 
8051 Microcontroller I/O ports
8051 Microcontroller I/O ports8051 Microcontroller I/O ports
8051 Microcontroller I/O ports
 
Interrupts of 8086
Interrupts of 8086Interrupts of 8086
Interrupts of 8086
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
 
Instruction Set of 8051 Microcontroller
Instruction Set of 8051 MicrocontrollerInstruction Set of 8051 Microcontroller
Instruction Set of 8051 Microcontroller
 
Subroutine & string in 8086 Microprocessor
Subroutine & string in 8086 MicroprocessorSubroutine & string in 8086 Microprocessor
Subroutine & string in 8086 Microprocessor
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdf
 
Weighted and Non Weighted Codes
Weighted and Non Weighted CodesWeighted and Non Weighted Codes
Weighted and Non Weighted Codes
 
Memory Segmentation of 8086
Memory Segmentation of 8086Memory Segmentation of 8086
Memory Segmentation of 8086
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
 
8086 in minimum mode
8086 in minimum mode8086 in minimum mode
8086 in minimum mode
 
ADDRESSING MODES
ADDRESSING MODESADDRESSING MODES
ADDRESSING MODES
 
flag register of 8086
flag register of 8086flag register of 8086
flag register of 8086
 
I. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptI. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.ppt
 

Similar to 8085 DATA TRANSFER INSTRUCTIONS

instruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).pptinstruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).ppt
ssuserb448e2
 
Instructionset8085
Instructionset8085Instructionset8085
Instructionset8085
Fawad Pathan
 
itft-Instruction set-of-8085
itft-Instruction set-of-8085itft-Instruction set-of-8085
itft-Instruction set-of-8085
Shifali Sharma
 
Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085
Chinmayee samal
 

Similar to 8085 DATA TRANSFER INSTRUCTIONS (20)

4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptx4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptx
 
8085 instructions details
8085 instructions details8085 instructions details
8085 instructions details
 
8085 instructions
8085 instructions8085 instructions
8085 instructions
 
Microprocessor Basics CH-3
Microprocessor Basics CH-3Microprocessor Basics CH-3
Microprocessor Basics CH-3
 
Instruction set of 8085
Instruction set of 8085Instruction set of 8085
Instruction set of 8085
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
UNIT II.pptx
UNIT II.pptxUNIT II.pptx
UNIT II.pptx
 
instruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).pptinstruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).ppt
 
Instructionset8085 by NCIT SAROZ BISTA SIR
Instructionset8085 by NCIT SAROZ BISTA SIRInstructionset8085 by NCIT SAROZ BISTA SIR
Instructionset8085 by NCIT SAROZ BISTA SIR
 
Instructionset8085
Instructionset8085Instructionset8085
Instructionset8085
 
INTEL 8085 DATA FORMAT AND INSTRUCTIONS
INTEL 8085 DATA FORMAT AND INSTRUCTIONSINTEL 8085 DATA FORMAT AND INSTRUCTIONS
INTEL 8085 DATA FORMAT AND INSTRUCTIONS
 
Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085
 
8085 is details
8085 is details8085 is details
8085 is details
 
itft-Instruction set-of-8085
itft-Instruction set-of-8085itft-Instruction set-of-8085
itft-Instruction set-of-8085
 
T imingdiagram
T imingdiagramT imingdiagram
T imingdiagram
 
8085 Instructions.pdf
8085 Instructions.pdf8085 Instructions.pdf
8085 Instructions.pdf
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Instructionsetof8086 180224060745(3)
Instructionsetof8086 180224060745(3)Instructionsetof8086 180224060745(3)
Instructionsetof8086 180224060745(3)
 
Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085
 
Module 2 instruction set
Module 2 instruction set Module 2 instruction set
Module 2 instruction set
 

More from RamaPrabha24 (11)

Dynamic debugging in 8085 microprocessor
Dynamic debugging in 8085 microprocessorDynamic debugging in 8085 microprocessor
Dynamic debugging in 8085 microprocessor
 
programming techniques
programming techniquesprogramming techniques
programming techniques
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modes
 
instruction set and classificaion
instruction set and classificaioninstruction set and classificaion
instruction set and classificaion
 
LOGICAL OPERATIONS IN 8085 MICROPROCESSOR
LOGICAL OPERATIONS IN 8085 MICROPROCESSORLOGICAL OPERATIONS IN 8085 MICROPROCESSOR
LOGICAL OPERATIONS IN 8085 MICROPROCESSOR
 
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSORARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
 
PINDIAGRAM OF 8085 MICROPROCESSOR
PINDIAGRAM OF 8085 MICROPROCESSORPINDIAGRAM OF 8085 MICROPROCESSOR
PINDIAGRAM OF 8085 MICROPROCESSOR
 
memory classification
memory classificationmemory classification
memory classification
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
 
Basic terms used in microprocessor
Basic terms used in microprocessorBasic terms used in microprocessor
Basic terms used in microprocessor
 
Applets in Java
Applets in JavaApplets in Java
Applets in Java
 

Recently uploaded

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 

8085 DATA TRANSFER INSTRUCTIONS

  • 1. B.RAMA PRABHA ASSISTANT PROFESSOR, DEPARTMENT OF COMPUTER SCIENCE, K.C.S.KASI NADAR COLLEGE OF ARTS & SCIENCE, CHENNAI-21
  • 2. “DATA TRANSFER INSTRUCTIONS This group of instructions copy data from a location called a source to another location called a destination, without modifying the contents of the source. In technical manuals, the term data transfer is used for this copying function. 2
  • 3. DATA TRANSFER (COPY)OPERATIONS 3 Several instructions are used to copy data. This sections concerned with the following operations.  MOV : Move (Copy a data byte)  MVI : Move Immediate (Load a data byte directly)  IN : Input from Port (Read a data byte from input device)  OUT : Output to port (Write a data byte into output device)  HLT :Halt (Stop processing and wait)  NOP :No operation (Do not perform any operation)
  • 4. MOV(MOVE) MOV (Rd, Rs)  This is a one byte instruction.  This instruction MOV Rd, Rs copies the contents of the source register Rs into the destination register Rd. Example :MOV D, C MOV M, Rs  Copy content of Source register into memory whose address is pointed by HL Pair of register Example : MOV M,B MOV Rd, M  Copy content of memory into Source register. Memory locations address is pointed by HL Pair of register. Example : MOV B,M 4
  • 5. MVI(MOVE IMMEDIATE) MVI R,8 bit:  This is a two byte instructions.  Loads the 8 bit of second byte into the specified register. Example : MVI B,05H MVI M,data  Loads the 8 bit data into a memory location, its location is specified by the contents of the HL registers. Example: MVI M, 57H 5
  • 6. OUT(OUTPUT TO PORT) OUT 8 bit port address  This is a two byte instructions  Sends (copies) the content of Accumulator(A) to the output port specified in the second byte. Example - OUT 50H 6
  • 7. IN(INPUT FROM PORT) IN 8 bit port address  This is a two byte instructions  Accepts data from the input port specified in the second byte and loads in the Accumulator(A). Example - IN 50H 7
  • 8. HLT(HALT)  This is a one byte instruction.  The processor stops executing and enter into wait state.  The address and data bus are high impedance state. No register contents are affected. Example : HLT 8
  • 9. NOP(NO OPERATION) NOP:  This is a one byte instruction  No operations are performed.  Generally used to increase processing time. 9
  • 10. 16 bit data transfer instructions 10
  • 11. LXI D,DATA(LOAD REGISTER PAIR IMMEDIATE)  LXI destination,(16-bit)Data  It is a three bytes instruction  Loading the destination with data 16-bit immediately, where the destination is Registers Pair (BC, DE, HL) or 16 bit register SP. Example : LXI B,3456  Loading registers pair BC with data 3456 immediately where 34 loaded in register B and 56 loaded in register C. 11 Opcode Operand Description LXI Reg. pair, 16-bit data Load the register pair immediate
  • 12. LDA 16 BIT DATA(LOAD THE ACCUMALATOR)  It is a three bytes instruction  The contents from the address (addresses in 8085 are 16-bit) are copied to the accumulator register. The contents of the source location remain unaltered.  Example : LDA 2034H  Contents stored at memory location 2034H are copied into the accumulator. 12 Opcode Operand Description LDA 16 BIT DATA Load the accumulator
  • 13. LDAX(Load the accumulator indirect)  It is a three bytes instruction  The contents of the mentioned register pair point to a memory location. LDAX instruction copies the contents of that particular memory location into the accumulator register. Neither the contents of the register pair nor that of the memory location is altered. Example : LDAX B 13 Opcode Operand Description LDAX B/D Reg. pair Load the accumulator indirect
  • 14. LHLD(Load H and L registers direct) (Load the accumulator indirect)  It is a three bytes instruction  The LHLD instruction copies the contents of a specified memory location pointed out by a 16-bit address into register L. The contents of the next memory location are copied into register H. Example : LHLD 2100H 14 Opcode Operand Description LHLD 16-bit address Load H and L registers direct
  • 15. STA(Store from the accumulator ) (Load H and L registers direct)  It is a three bytes instruction  The contents of the accumulator register are copied into a memory location, which is specified by the operand. Example : STA 1000H 15 Opcode Operand Description STA 16-bit address value Store from the accumulator into a memory location
  • 16. STAX(Store from the accumulator into register pair ) (Load H and L registers direct)  It is a one bytes instruction  The contents of the accumulator register are copied into the memory specified by the register pair in the operand. Example : STAX B 16 Opcode Operand Description STAX Register pair Store contents of the accumulator into other register pair
  • 17. SHLD(Store from the HL register pair ) (Load H and L registers direct)  It is a one bytes instruction  The first 8-bit contents of the register L is stored into the memory location specified by the 16-bit address. The next 8-bit contents of the register H are stored into the subsequent memory location. Example : SHLD 1200H 17 Opcode Operand Description SHLD 16-bit address Stores from the H-L registers into the specified location
  • 18. XCHG(EXCHANGE ) (Load H and L registers direct)  It is a one bytes instruction  The contents of register pair H-L are exchanged with the contents of the register-pair D-E. The information stored in register H is exchanged with that of D; similarly, that in register L is exchanged with the contents of the register E. Example : XCHG 18 Opcode Operand Description XCHG None Exchange H-L with D-E
  • 19. PUSH(PUSH IN TO STACK) (Load H and L registers direct)  It is a one bytes instruction  The PUSH command pushes the contents of the register onto the stack in 8085, which saves it as a temporary copy Example : PUSH H 19 Opcode Operand Description PUSH R Pushes onto stack
  • 20. PUSH PSW(PUSH PSW ON TO STACK) (Load H and L registers direct)  It is a one bytes instruction  The PUSH PSW command pushes the contents of the PSW (Program status word or flag register) onto the stack in 8085, which saves it as a temporary copy.  The stack pointer is first decremented by one, and the contents of the accumulator are copied to that particular location. The stack pointer is again decremented by one, and the contents of the flag register (PSW) are copied to that location. Example : PUSH PSW 20 Opcode Operand Description PUSH PSW Pushes PSW onto the stack
  • 21. POP(PUSH FROM THE STACK) (Load H and L registers direct)  It is a one bytes instruction  The POP command pops the contents stored onto the stack (where it might have been saved as a temporary copy) to a Example : POP B 21 Opcode Operand Description POP R Pops from the stack
  • 22. POP PSW(P0P PSW FROM THE STACK) (Load H and L registers direct)  It is a one bytes instruction  The data at the memory location pointed by the stack pointer are copied to the flag register. The stack pointer is incremented by one, and the contents of that location are copied to the accumulator. The stack pointer is again incremented by one. Example : POP PSW 22 Opcode Operand Description POP PSW Pops PSW from the stack
  • 23. SPHL )  It is a one bytes instruction  Contents of L register are exchanged with top of the stack. The stack pointer is incremented, and the contents of the next location of the stack are exchanged with H register. The contents of the stack pointer register are not altered. Example : SPHL 23 Opcode Operand Description SPHL – Move contents of HL pair to SP register
  • 24. XTHL )  It is a one bytes instruction  Contents of L register are exchanged with top of the stack. The stack pointer is incremented, and the contents of the next location of the stack are exchanged with H register. The contents of the stack pointer register are not altered. Example : XTHL 24 Opcode Operand Description XTHL – Exchange the contents at the top of the stack with HL pair