SlideShare a Scribd company logo
1 of 15
COMPUTER
ORGANISATION
• TOPIC:DATA TRANSFER
INSTRUCTIONS
• Group:- G2 BATCH:-B3
• MADE BY:15CP032-SIDDHAPURA ROMIL
15CP018-AHALPARA KEVAL
15CP033-KAVAIYA HIREN
1
8085 Microprocessor
2
• The microprocessor is a
programmable integrated
device that has computing and
decision making capability
similar to that CPU of a
computer.
• It is a multi-purpose,clock-
driven, register-based
electronic device.
LET’S BEGIN WITH MAIN DATA
TRANSFER INSTRUCTIONS
• One of the primarily functions of microprocessor is
copying data from source register to destination register.
• This copying function is labeled as data transfer
instructions.
• In fact, contents of the source are not transferred but are
copied into destination without modyfying the content of
source.
• The previous contents of destination are replaced by the
contents by the contents of the source.
• Several instruction are used to copy data which are
listed below:-
3
LIST OF DATA TRANSFER
INSTRUCTION
• MOV Rd,Rs:- Copies data from source register Rs to
destination register Rd.
• MVI R,8-bit:- Loads the 8-bit of the second byte into
the register specified.
• OUT 8-bit port address:- Sends the contents of the
accumulator (A) to the output port specified
in the second byte.
• IN 8-bit port address:-Accepts the data from the input
port specified in second byte ,and loads
into the accumulator.
4
“LHLD” INSTRUCTION
• LHLD stands for Load H and L Registers Direct .
• This instruction copies the contents of the memory
location pointed by the 16-bit address in register L and
copies the contents of the next memory location in
register H. The contents of source memory locations are
not altered.
• Flags:- The execution of LHLD instruction can not affect
the flags.
• Example:- Assume memory allocation 1050H contains
30H and 1051H contains 32H.This instruction transfer
memory contents to register pair HL.
5
• For above example Instruction :- LHLD 1050H
Hex code :- 2A 50 10
• Memory contents before instruction:-
• Registers contents after instruction:-
6
1050 30
1051 32
H 32
L 30
7
LHLD timing diagram
• In 1st Machine cycles, the 8085 microprocessor places
the address of memory loaction on the address bus and
fetches the opcode of LHLD instruction.
• The second machine cycle is read. In this machine cycle
processor places the address of next incremented
memory location and gets the low-order byte.
• The third machine cycle is also read. This machine cycle
also perform the same as second machine cycle and
gets the high-order byte instead of low-order byte.
• In the fourth machine cycle, contents of the memory
location pointed out by 16-bit address copies into
register L.
• In the fifth machine cycle, contents of the next memory
location copies into register H.
8
Number of bytes used in instruction:- 3
bytes
Total no. of machine cycles:- 5(F,R,R,R,R)
Total no. of clock cycles:-16
Addressing modes:-Register direct
9
“SHLD” INSTRUCTION
• SHLD stands for store H and L Registers Direct.
• The contents of register L are stored in the memory
location specified by the 16- bit address in the operand,
and the contents of H registers are stored in the next
memory location by incrementing the operand.
• Remember, the contents of the HL pair register are not
altered.
• This is also a 3-byte instruction. The second byte
specifies the low-order address and the third byte
specifies the high-order address.
10
• Flags:- No flags are affected.
• Example:-Assume the H and L registers contain 01H and
FFH, respectively at memory location 1050H and 1051H.
• Instruction:- SHLD 1050H Hex code:- 22 50 10
• Register contents before instruction:-
• Register and memory contents before instruction:-
11
H 01
L FF
1050 FF
1051 01
H 01
L FF
12
SHLD timing diagram
• In SHLD instruction, first 3 cycle is same as in described
in LHLD instruction.
• In SHLD instruction, 4th and 5th cycle will be write cycle.
• So, in 4th cycle, contents of the register L are stored in
the memory pointed by the address in operand, and
during 5th machine cycle,contents of the register H are
stored in next memory location.
13
Number of bytes used in instruction:- 3
bytes
Total no. of machine cycles:- 5
(F,R,R,W,W)
Total no. of clock cycles:-16
Addressing modes:-Register direct
14
15

More Related Content

What's hot

T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085yedles
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & DecoderSyed Saeed
 
memory reference instruction
memory reference instructionmemory reference instruction
memory reference instructionDeepikaT13
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)rishi ram khanal
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORTRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORSubash Sambath Kumar
 
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
COMPUTER INSTRUCTIONS & TIMING & CONTROL.COMPUTER INSTRUCTIONS & TIMING & CONTROL.
COMPUTER INSTRUCTIONS & TIMING & CONTROL.ATUL KUMAR YADAV
 
Counters & time delay
Counters & time delayCounters & time delay
Counters & time delayHemant Chetwani
 
8086-instruction-set-ppt
 8086-instruction-set-ppt 8086-instruction-set-ppt
8086-instruction-set-pptjemimajerome
 
Instruction Execution Cycle
Instruction Execution CycleInstruction Execution Cycle
Instruction Execution Cycleutsav_shah
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051SARITHA REDDY
 
Introduction to 8085 microprocessor
Introduction to 8085 microprocessorIntroduction to 8085 microprocessor
Introduction to 8085 microprocessorkunj desai
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkarSAQUIB AHMAD
 
Timing and control unit
Timing and control unitTiming and control unit
Timing and control unitDestro Destro
 

What's hot (20)

T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & Decoder
 
memory reference instruction
memory reference instructionmemory reference instruction
memory reference instruction
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
 
Basic Computer Organization and Design
Basic  Computer  Organization  and  DesignBasic  Computer  Organization  and  Design
Basic Computer Organization and Design
 
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
 
ARM Processors
ARM ProcessorsARM Processors
ARM Processors
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORTRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
 
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
COMPUTER INSTRUCTIONS & TIMING & CONTROL.COMPUTER INSTRUCTIONS & TIMING & CONTROL.
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
 
Counters & time delay
Counters & time delayCounters & time delay
Counters & time delay
 
8086-instruction-set-ppt
 8086-instruction-set-ppt 8086-instruction-set-ppt
8086-instruction-set-ppt
 
Instruction Execution Cycle
Instruction Execution CycleInstruction Execution Cycle
Instruction Execution Cycle
 
CISC & RISC Architecture
CISC & RISC Architecture CISC & RISC Architecture
CISC & RISC Architecture
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
Introduction to 8085 microprocessor
Introduction to 8085 microprocessorIntroduction to 8085 microprocessor
Introduction to 8085 microprocessor
 
I o ports.ppt
I o ports.pptI o ports.ppt
I o ports.ppt
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
 
Timing and control unit
Timing and control unitTiming and control unit
Timing and control unit
 
Timing diagram 8085 microprocessor
Timing diagram 8085 microprocessorTiming diagram 8085 microprocessor
Timing diagram 8085 microprocessor
 

Similar to SHLD and LHLD instruction

Microprocessor architecture II
Microprocessor architecture   IIMicroprocessor architecture   II
Microprocessor architecture IIDr.YNM
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085Sumit Swain
 
Chapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional InstructionsChapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional Instructionscmkandemir
 
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptxlec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptxMadavanR1
 
3-addressingmodes-181203034235.pptx
3-addressingmodes-181203034235.pptx3-addressingmodes-181203034235.pptx
3-addressingmodes-181203034235.pptxMdAsaduzzaman257266
 
8085-instruction.ppt
8085-instruction.ppt8085-instruction.ppt
8085-instruction.pptSudeshnaDey22
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptxMemonaMemon1
 
Basic computer organization and design
Basic computer organization and designBasic computer organization and design
Basic computer organization and designmahesh kumar prajapat
 
Machine cycles
Machine cyclesMachine cycles
Machine cyclesWafaAbied
 
8085_Microprocessor(simar).ppt
8085_Microprocessor(simar).ppt8085_Microprocessor(simar).ppt
8085_Microprocessor(simar).pptKanikaJindal9
 
Assembly Language Paper.docx
Assembly Language Paper.docxAssembly Language Paper.docx
Assembly Language Paper.docxwrite22
 
Advanced Embedded Automatic Car Parking System
	Advanced Embedded Automatic Car Parking System	Advanced Embedded Automatic Car Parking System
Advanced Embedded Automatic Car Parking Systemtheijes
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecturedeval patel
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085ShivamSood22
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontrollerchirag patil
 

Similar to SHLD and LHLD instruction (20)

Microprocessor architecture II
Microprocessor architecture   IIMicroprocessor architecture   II
Microprocessor architecture II
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
 
EC203DSD - Module 5 - 3.ppt
EC203DSD - Module 5 - 3.pptEC203DSD - Module 5 - 3.ppt
EC203DSD - Module 5 - 3.ppt
 
Chapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional InstructionsChapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional Instructions
 
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptxlec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
 
3-addressingmodes-181203034235.pptx
3-addressingmodes-181203034235.pptx3-addressingmodes-181203034235.pptx
3-addressingmodes-181203034235.pptx
 
8085-instruction.ppt
8085-instruction.ppt8085-instruction.ppt
8085-instruction.ppt
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptx
 
Basic computer organization and design
Basic computer organization and designBasic computer organization and design
Basic computer organization and design
 
Machine cycles
Machine cyclesMachine cycles
Machine cycles
 
8085_Microprocessor(simar).ppt
8085_Microprocessor(simar).ppt8085_Microprocessor(simar).ppt
8085_Microprocessor(simar).ppt
 
Unit iii
Unit iiiUnit iii
Unit iii
 
Assembly Language Paper.docx
Assembly Language Paper.docxAssembly Language Paper.docx
Assembly Language Paper.docx
 
Advanced Embedded Automatic Car Parking System
	Advanced Embedded Automatic Car Parking System	Advanced Embedded Automatic Car Parking System
Advanced Embedded Automatic Car Parking System
 
Lec04
Lec04Lec04
Lec04
 
Lec04
Lec04Lec04
Lec04
 
instruction format.pptx
instruction format.pptxinstruction format.pptx
instruction format.pptx
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecture
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 

Recently uploaded

Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 

Recently uploaded (20)

Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 

SHLD and LHLD instruction

  • 1. COMPUTER ORGANISATION • TOPIC:DATA TRANSFER INSTRUCTIONS • Group:- G2 BATCH:-B3 • MADE BY:15CP032-SIDDHAPURA ROMIL 15CP018-AHALPARA KEVAL 15CP033-KAVAIYA HIREN 1
  • 2. 8085 Microprocessor 2 • The microprocessor is a programmable integrated device that has computing and decision making capability similar to that CPU of a computer. • It is a multi-purpose,clock- driven, register-based electronic device.
  • 3. LET’S BEGIN WITH MAIN DATA TRANSFER INSTRUCTIONS • One of the primarily functions of microprocessor is copying data from source register to destination register. • This copying function is labeled as data transfer instructions. • In fact, contents of the source are not transferred but are copied into destination without modyfying the content of source. • The previous contents of destination are replaced by the contents by the contents of the source. • Several instruction are used to copy data which are listed below:- 3
  • 4. LIST OF DATA TRANSFER INSTRUCTION • MOV Rd,Rs:- Copies data from source register Rs to destination register Rd. • MVI R,8-bit:- Loads the 8-bit of the second byte into the register specified. • OUT 8-bit port address:- Sends the contents of the accumulator (A) to the output port specified in the second byte. • IN 8-bit port address:-Accepts the data from the input port specified in second byte ,and loads into the accumulator. 4
  • 5. “LHLD” INSTRUCTION • LHLD stands for Load H and L Registers Direct . • This instruction copies the contents of the memory location pointed by the 16-bit address in register L and copies the contents of the next memory location in register H. The contents of source memory locations are not altered. • Flags:- The execution of LHLD instruction can not affect the flags. • Example:- Assume memory allocation 1050H contains 30H and 1051H contains 32H.This instruction transfer memory contents to register pair HL. 5
  • 6. • For above example Instruction :- LHLD 1050H Hex code :- 2A 50 10 • Memory contents before instruction:- • Registers contents after instruction:- 6 1050 30 1051 32 H 32 L 30
  • 8. • In 1st Machine cycles, the 8085 microprocessor places the address of memory loaction on the address bus and fetches the opcode of LHLD instruction. • The second machine cycle is read. In this machine cycle processor places the address of next incremented memory location and gets the low-order byte. • The third machine cycle is also read. This machine cycle also perform the same as second machine cycle and gets the high-order byte instead of low-order byte. • In the fourth machine cycle, contents of the memory location pointed out by 16-bit address copies into register L. • In the fifth machine cycle, contents of the next memory location copies into register H. 8
  • 9. Number of bytes used in instruction:- 3 bytes Total no. of machine cycles:- 5(F,R,R,R,R) Total no. of clock cycles:-16 Addressing modes:-Register direct 9
  • 10. “SHLD” INSTRUCTION • SHLD stands for store H and L Registers Direct. • The contents of register L are stored in the memory location specified by the 16- bit address in the operand, and the contents of H registers are stored in the next memory location by incrementing the operand. • Remember, the contents of the HL pair register are not altered. • This is also a 3-byte instruction. The second byte specifies the low-order address and the third byte specifies the high-order address. 10
  • 11. • Flags:- No flags are affected. • Example:-Assume the H and L registers contain 01H and FFH, respectively at memory location 1050H and 1051H. • Instruction:- SHLD 1050H Hex code:- 22 50 10 • Register contents before instruction:- • Register and memory contents before instruction:- 11 H 01 L FF 1050 FF 1051 01 H 01 L FF
  • 13. • In SHLD instruction, first 3 cycle is same as in described in LHLD instruction. • In SHLD instruction, 4th and 5th cycle will be write cycle. • So, in 4th cycle, contents of the register L are stored in the memory pointed by the address in operand, and during 5th machine cycle,contents of the register H are stored in next memory location. 13
  • 14. Number of bytes used in instruction:- 3 bytes Total no. of machine cycles:- 5 (F,R,R,W,W) Total no. of clock cycles:-16 Addressing modes:-Register direct 14
  • 15. 15