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

Computer architecture and organization
Computer architecture and organizationComputer architecture and organization
Computer architecture and organizationTushar B Kute
 
Data transfer instruction set of 8085 micro processor
Data transfer instruction set of 8085 micro processorData transfer instruction set of 8085 micro processor
Data transfer instruction set of 8085 micro processorvishalgohel12195
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil KawareProf. Swapnil V. Kaware
 
introduction to microprocessors
introduction to microprocessorsintroduction to microprocessors
introduction to microprocessorsvishi1993
 
8086-instruction-set-ppt
 8086-instruction-set-ppt 8086-instruction-set-ppt
8086-instruction-set-pptjemimajerome
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkarSAQUIB AHMAD
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessorAMAN SRIVASTAVA
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Jismy .K.Jose
 
Instruction sets of 8086
Instruction sets of 8086Instruction sets of 8086
Instruction sets of 8086Mahalakshmiv11
 
Basic computer organization
Basic computer organizationBasic computer organization
Basic computer organizationNitesh Singh
 
Flag register 8086 assignment
Flag register 8086 assignmentFlag register 8086 assignment
Flag register 8086 assignmentZia3130
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086saurav kumar
 
8085 data transfer instruction set
8085 data transfer instruction set8085 data transfer instruction set
8085 data transfer instruction setprashant1271
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1deval patel
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085ShivamSood22
 

What's hot (20)

Computer architecture and organization
Computer architecture and organizationComputer architecture and organization
Computer architecture and organization
 
Data transfer instruction set of 8085 micro processor
Data transfer instruction set of 8085 micro processorData transfer instruction set of 8085 micro processor
Data transfer instruction set of 8085 micro processor
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware
 
introduction to microprocessors
introduction to microprocessorsintroduction to microprocessors
introduction to microprocessors
 
8086-instruction-set-ppt
 8086-instruction-set-ppt 8086-instruction-set-ppt
8086-instruction-set-ppt
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor
 
Instruction formats-in-8086
Instruction formats-in-8086Instruction formats-in-8086
Instruction formats-in-8086
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086
 
Instruction sets of 8086
Instruction sets of 8086Instruction sets of 8086
Instruction sets of 8086
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
 
Basic computer organization
Basic computer organizationBasic computer organization
Basic computer organization
 
Flag register 8086 assignment
Flag register 8086 assignmentFlag register 8086 assignment
Flag register 8086 assignment
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
8085 data transfer instruction set
8085 data transfer instruction set8085 data transfer instruction set
8085 data transfer instruction set
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction set
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1
 
Pin diagram 8085
Pin diagram 8085 Pin diagram 8085
Pin diagram 8085
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
Microprocessor ppt
Microprocessor pptMicroprocessor ppt
Microprocessor ppt
 

Similar to 8085 DATA TRANSFER INSTRUCTIONS

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.pptxISMT College
 
Microprocessor Basics CH-3
Microprocessor Basics CH-3Microprocessor Basics CH-3
Microprocessor Basics CH-3Neelam Kapoor
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction setJLoknathDora
 
instruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).pptinstruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).pptssuserb448e2
 
Instructionset8085 by NCIT SAROZ BISTA SIR
Instructionset8085 by NCIT SAROZ BISTA SIRInstructionset8085 by NCIT SAROZ BISTA SIR
Instructionset8085 by NCIT SAROZ BISTA SIRTHEE CAVE
 
Instructionset8085
Instructionset8085Instructionset8085
Instructionset8085Fawad Pathan
 
INTEL 8085 DATA FORMAT AND INSTRUCTIONS
INTEL 8085 DATA FORMAT AND INSTRUCTIONSINTEL 8085 DATA FORMAT AND INSTRUCTIONS
INTEL 8085 DATA FORMAT AND INSTRUCTIONSSwapnil Mishra
 
Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085Shubham Singh
 
itft-Instruction set-of-8085
itft-Instruction set-of-8085itft-Instruction set-of-8085
itft-Instruction set-of-8085Shifali Sharma
 
T imingdiagram
T imingdiagramT imingdiagram
T imingdiagrampuja00
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086Vijay Kumar
 
Instructionsetof8086 180224060745(3)
Instructionsetof8086 180224060745(3)Instructionsetof8086 180224060745(3)
Instructionsetof8086 180224060745(3)AmitPaliwal20
 
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 8085Chinmayee samal
 
Module 2 instruction set
Module 2 instruction set Module 2 instruction set
Module 2 instruction set Deepak John
 

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

Dynamic debugging in 8085 microprocessor
Dynamic debugging in 8085 microprocessorDynamic debugging in 8085 microprocessor
Dynamic debugging in 8085 microprocessorRamaPrabha24
 
programming techniques
programming techniquesprogramming techniques
programming techniquesRamaPrabha24
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modesRamaPrabha24
 
instruction set and classificaion
instruction set and classificaioninstruction set and classificaion
instruction set and classificaionRamaPrabha24
 
LOGICAL OPERATIONS IN 8085 MICROPROCESSOR
LOGICAL OPERATIONS IN 8085 MICROPROCESSORLOGICAL OPERATIONS IN 8085 MICROPROCESSOR
LOGICAL OPERATIONS IN 8085 MICROPROCESSORRamaPrabha24
 
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSORARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSORRamaPrabha24
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONSRamaPrabha24
 
PINDIAGRAM OF 8085 MICROPROCESSOR
PINDIAGRAM OF 8085 MICROPROCESSORPINDIAGRAM OF 8085 MICROPROCESSOR
PINDIAGRAM OF 8085 MICROPROCESSORRamaPrabha24
 
memory classification
memory classificationmemory classification
memory classificationRamaPrabha24
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessorRamaPrabha24
 
Basic terms used in microprocessor
Basic terms used in microprocessorBasic terms used in microprocessor
Basic terms used in microprocessorRamaPrabha24
 

More from RamaPrabha24 (12)

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
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
 
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

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 

Recently uploaded (20)

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 

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