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

Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086saurav kumar
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set ArchitectureDilum Bandara
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1deval patel
 
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
 
Counters & time delay
Counters & time delayCounters & time delay
Counters & time delayHemant Chetwani
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stackAsif Iqbal
 
Memory segmentation-of-8086
Memory segmentation-of-8086Memory segmentation-of-8086
Memory segmentation-of-8086mudulin
 
Logical Instructions used in 8086 microprocessor
Logical Instructions used in 8086 microprocessorLogical Instructions used in 8086 microprocessor
Logical Instructions used in 8086 microprocessorRabin BK
 
Register Organisation of 8086 Microprocessor
Register Organisation of 8086 MicroprocessorRegister Organisation of 8086 Microprocessor
Register Organisation of 8086 MicroprocessorNikhil Kumar
 
programming techniques
programming techniquesprogramming techniques
programming techniquesRamaPrabha24
 
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
 
flag register of 8086
flag register of 8086flag register of 8086
flag register of 8086asrithak
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor Mustapha Fatty
 

What's hot (20)

Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
Stack
StackStack
Stack
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1
 
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
 
Counters & time delay
Counters & time delayCounters & time delay
Counters & time delay
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stack
 
Memory segmentation-of-8086
Memory segmentation-of-8086Memory segmentation-of-8086
Memory segmentation-of-8086
 
Logical Instructions used in 8086 microprocessor
Logical Instructions used in 8086 microprocessorLogical Instructions used in 8086 microprocessor
Logical Instructions used in 8086 microprocessor
 
Interrupts of 8086
Interrupts of 8086Interrupts of 8086
Interrupts of 8086
 
Register Organisation of 8086 Microprocessor
Register Organisation of 8086 MicroprocessorRegister Organisation of 8086 Microprocessor
Register Organisation of 8086 Microprocessor
 
Unit 2 mpmc
Unit 2 mpmcUnit 2 mpmc
Unit 2 mpmc
 
programming techniques
programming techniquesprogramming techniques
programming techniques
 
Pin diagram 8085
Pin diagram 8085 Pin diagram 8085
Pin diagram 8085
 
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
 
flag register of 8086
flag register of 8086flag register of 8086
flag register of 8086
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor
 
8086 Instruction set
8086 Instruction set8086 Instruction set
8086 Instruction set
 

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
 
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 (11)

Dynamic debugging in 8085 microprocessor
Dynamic debugging in 8085 microprocessorDynamic debugging in 8085 microprocessor
Dynamic debugging in 8085 microprocessor
 
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

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 

Recently uploaded (20)

Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
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
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 

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