SlideShare a Scribd company logo
1 of 12
Download to read offline
PRINCIPLES OF 8085 MICROPROCESSOR
Dr.S.Barani
School of Electrical and Electronics Engineering
Sathyabama Institute of Science and Technology
Week 2 – Instruction sets
A certified Moodle Course on
DATA TRANSFER INSTRUCTIONS
2
A certified Moodle Course on Principles of 8085 Microprocessor
L
O
A
D
I
N
S
T
R
U
C
T
I
O
N
S
Syntax LDA 16 Bit address – 3 byte
LDA 4000
Register Contents Before execution
Register Contents After execution
H L
40 00 4000 7E XX
A
H L
40 00 4000 7E 7E
A
Status of Flag
Register
Flags are not
affected
No change in Flag
contents
Src – Memory
Des – A reg
LDAX B
Register Contents Before execution
Syntax LDAX B/D reg.pair – 1 byte
Status of Flag Register
Flags are not affected
No change in Flag contents
3
A certified Moodle Course on Principles of 8085 Microprocessor
Hint
Src –
content of
address in
B/D reg
pair
Des – A
reg
A
B
XX XX
40 00
F
C
4000 9E Register Contents After execution
A
B
9E XX
40 00
F
C
LHLD 4000
Register Contents Before execution
Syntax LHLD 16 Bit address – 3 byte
Status of Flag Register
Flags are not affected
No change in Flag contents
4
A certified Moodle Course on Principles of 8085 Microprocessor
Hint
Src –
address
Address+1
Des
Address+1
-H
Address -
L
Register Contents After execution
H XX XX
4000 9E
4001 5F
L
H 5F 9E
4000 9E
4001 5F
L
LOADS 16 BIT DATA
LXI B, 4232
Register Contents Before execution
Register Contents After execution
Syntax LXI reg.pair , 16 bit data – 3 byte LOAD REG.PAIR IMMEDIATE
Status of Flag
Dregister
Flags are not
affected
No change in Flag
contents
5
A certified Moodle Course on Principles of 8085 Microprocessor
Hint
Src is 16 bit
data i.e
directly
passing the
value
Des is
Reg. pair
XX XX
B C
42 32
B C
LOADS 16 bit address directly
in to Stack Pointer (SP)
PCHL
Register Contents Before execution
Register Contents After execution
Syntax PCHL none – 1 byte LOAD PC WITH HL
Status of Flag
Dregister
Flags are not
affected
No change in Flag
contents
6
A certified Moodle Course on Principles of 8085 Microprocessor
Hint
Src HL
Reg. Pair
Des
Prog.
Counter
PC
45 00
PC XXXX
H L
45 00
PC 4500
H L
LOADS 16 bit address directly
in to Program Counter (PC)
TRY - OUT
TASK 1
Execute the
instruction LXI
SP,4000 and update
the contents of SP
registers and status of
Flag register.
Before execution
Assume the value of
SP as xxxx
TASK 2
Execute the instruction
LDAX D and update
the contents of A
register and status of
Flag register.
Before execution
The content of D - 50
The content of E – 00
Content of 5000 – 6D
TASK 3
Execute the instruction
LDA 4500 and update
the contents of
registers and status of
Flag register.
Before execution
The content of A - 3D
The content of 4500 -
75
7
A certified Moodle Course on Principles of 8085 Microprocessor
TASK 4
Execute the instruction
LHLD 4500 and
update the contents of
registers and status of
Flag register.
Before execution
The content of 4500 –
43
The content of 4500 -
76
SOLUTION - TASK 1
Before execution
After execution
No changes in flag register
8
A certified Moodle Course on Principles of 8085 Microprocessor
SP XXXX
TASK 1
Execute the instruction
LXI SP,4000 and
update the contents of
SP registers and status
of Flag register.
Before execution
Assume the value of SP
as xxxx
SP 4000
SOLUTION - TASK 2
Before execution
After execution
No changes in flag register
9
A certified Moodle Course on Principles of 8085 Microprocessor
D E A
50 00 XX
50 00 6D
D E A
5000 6D
5000 6D
TASK 2
Execute the
instruction LDAX D
and update the
contents of A register
and status of Flag
register.
Before execution
The content of D - 50
The content of E – 00
Content of 5000 – 6D
SOLUTION - TASK 3
Before execution
After execution
No changes in flag register
10
A certified Moodle Course on Principles of 8085 Microprocessor
A
3D
75
A
TASK 3
Execute the
instruction LDA 4500
and update the
contents of registers
and status of Flag
register.
Before execution
The content of A -
3D
The content of 4500 -
75
4500 75
4500 75
SOLUTION - TASK 4
Before execution
After execution
No changes in flag register
11
A certified Moodle Course on Principles of 8085 Microprocessor
H L
XX XX
4500 43
4501 76
TASK 4
Execute the instruction
LHLD 4500 and update
the contents of registers
and status of Flag
register.
Before execution
The content of 4500 – 43
The content of 4501 - 76
H L
76 43
4500 43
4501 76
A certified Moodle Course on Principles of 8085 Microprocessor

More Related Content

Similar to Week 2.2 Data Transfer Instructions - Load Instructions

Instruction set class
Instruction set   classInstruction set   class
Instruction set class
shiji v r
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
vipinkmenon1
 
MDRM(Master Data Record Manager)
MDRM(Master Data Record Manager)MDRM(Master Data Record Manager)
MDRM(Master Data Record Manager)
Shadab akram Khan
 
My seminar new 28
My seminar new 28My seminar new 28
My seminar new 28
rajeshkvdn
 
11 chapter06 slc_int_float_mov_mvm_fa14
11 chapter06 slc_int_float_mov_mvm_fa1411 chapter06 slc_int_float_mov_mvm_fa14
11 chapter06 slc_int_float_mov_mvm_fa14
John Todora
 
Addressing Modes of 8051.pptx
Addressing Modes of 8051.pptxAddressing Modes of 8051.pptx
Addressing Modes of 8051.pptx
TumkurInfomedia
 
06 Justenough Information
06 Justenough Information06 Justenough Information
06 Justenough Information
Adithya Rao
 

Similar to Week 2.2 Data Transfer Instructions - Load Instructions (20)

8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
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
 
Mpi
MpiMpi
Mpi
 
Microprocessor Lab Manual by Er. Swapnil V. Kaware
Microprocessor Lab Manual by Er. Swapnil V. KawareMicroprocessor Lab Manual by Er. Swapnil V. Kaware
Microprocessor Lab Manual by Er. Swapnil V. Kaware
 
Instruction set class
Instruction set   classInstruction set   class
Instruction set class
 
Instruction set of 8085
Instruction set  of 8085Instruction set  of 8085
Instruction set of 8085
 
8085 instruction-set part 1
8085 instruction-set part 18085 instruction-set part 1
8085 instruction-set part 1
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Malp edusat
Malp edusatMalp edusat
Malp edusat
 
7358 mathcad chart ts_en
7358 mathcad chart ts_en7358 mathcad chart ts_en
7358 mathcad chart ts_en
 
MDRM(Master Data Record Manager)
MDRM(Master Data Record Manager)MDRM(Master Data Record Manager)
MDRM(Master Data Record Manager)
 
Loader
LoaderLoader
Loader
 
My seminar new 28
My seminar new 28My seminar new 28
My seminar new 28
 
Microcontroller 8051 basics (part I)
Microcontroller 8051 basics (part I)Microcontroller 8051 basics (part I)
Microcontroller 8051 basics (part I)
 
11 chapter06 slc_int_float_mov_mvm_fa14
11 chapter06 slc_int_float_mov_mvm_fa1411 chapter06 slc_int_float_mov_mvm_fa14
11 chapter06 slc_int_float_mov_mvm_fa14
 
Addressing Modes of 8051.pptx
Addressing Modes of 8051.pptxAddressing Modes of 8051.pptx
Addressing Modes of 8051.pptx
 
Instruction Set 8085
Instruction Set 8085Instruction Set 8085
Instruction Set 8085
 
06 Justenough Information
06 Justenough Information06 Justenough Information
06 Justenough Information
 

Recently uploaded

Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
pritamlangde
 

Recently uploaded (20)

Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 

Week 2.2 Data Transfer Instructions - Load Instructions

  • 1. PRINCIPLES OF 8085 MICROPROCESSOR Dr.S.Barani School of Electrical and Electronics Engineering Sathyabama Institute of Science and Technology Week 2 – Instruction sets A certified Moodle Course on
  • 2. DATA TRANSFER INSTRUCTIONS 2 A certified Moodle Course on Principles of 8085 Microprocessor L O A D I N S T R U C T I O N S Syntax LDA 16 Bit address – 3 byte LDA 4000 Register Contents Before execution Register Contents After execution H L 40 00 4000 7E XX A H L 40 00 4000 7E 7E A Status of Flag Register Flags are not affected No change in Flag contents Src – Memory Des – A reg
  • 3. LDAX B Register Contents Before execution Syntax LDAX B/D reg.pair – 1 byte Status of Flag Register Flags are not affected No change in Flag contents 3 A certified Moodle Course on Principles of 8085 Microprocessor Hint Src – content of address in B/D reg pair Des – A reg A B XX XX 40 00 F C 4000 9E Register Contents After execution A B 9E XX 40 00 F C
  • 4. LHLD 4000 Register Contents Before execution Syntax LHLD 16 Bit address – 3 byte Status of Flag Register Flags are not affected No change in Flag contents 4 A certified Moodle Course on Principles of 8085 Microprocessor Hint Src – address Address+1 Des Address+1 -H Address - L Register Contents After execution H XX XX 4000 9E 4001 5F L H 5F 9E 4000 9E 4001 5F L LOADS 16 BIT DATA
  • 5. LXI B, 4232 Register Contents Before execution Register Contents After execution Syntax LXI reg.pair , 16 bit data – 3 byte LOAD REG.PAIR IMMEDIATE Status of Flag Dregister Flags are not affected No change in Flag contents 5 A certified Moodle Course on Principles of 8085 Microprocessor Hint Src is 16 bit data i.e directly passing the value Des is Reg. pair XX XX B C 42 32 B C LOADS 16 bit address directly in to Stack Pointer (SP)
  • 6. PCHL Register Contents Before execution Register Contents After execution Syntax PCHL none – 1 byte LOAD PC WITH HL Status of Flag Dregister Flags are not affected No change in Flag contents 6 A certified Moodle Course on Principles of 8085 Microprocessor Hint Src HL Reg. Pair Des Prog. Counter PC 45 00 PC XXXX H L 45 00 PC 4500 H L LOADS 16 bit address directly in to Program Counter (PC)
  • 7. TRY - OUT TASK 1 Execute the instruction LXI SP,4000 and update the contents of SP registers and status of Flag register. Before execution Assume the value of SP as xxxx TASK 2 Execute the instruction LDAX D and update the contents of A register and status of Flag register. Before execution The content of D - 50 The content of E – 00 Content of 5000 – 6D TASK 3 Execute the instruction LDA 4500 and update the contents of registers and status of Flag register. Before execution The content of A - 3D The content of 4500 - 75 7 A certified Moodle Course on Principles of 8085 Microprocessor TASK 4 Execute the instruction LHLD 4500 and update the contents of registers and status of Flag register. Before execution The content of 4500 – 43 The content of 4500 - 76
  • 8. SOLUTION - TASK 1 Before execution After execution No changes in flag register 8 A certified Moodle Course on Principles of 8085 Microprocessor SP XXXX TASK 1 Execute the instruction LXI SP,4000 and update the contents of SP registers and status of Flag register. Before execution Assume the value of SP as xxxx SP 4000
  • 9. SOLUTION - TASK 2 Before execution After execution No changes in flag register 9 A certified Moodle Course on Principles of 8085 Microprocessor D E A 50 00 XX 50 00 6D D E A 5000 6D 5000 6D TASK 2 Execute the instruction LDAX D and update the contents of A register and status of Flag register. Before execution The content of D - 50 The content of E – 00 Content of 5000 – 6D
  • 10. SOLUTION - TASK 3 Before execution After execution No changes in flag register 10 A certified Moodle Course on Principles of 8085 Microprocessor A 3D 75 A TASK 3 Execute the instruction LDA 4500 and update the contents of registers and status of Flag register. Before execution The content of A - 3D The content of 4500 - 75 4500 75 4500 75
  • 11. SOLUTION - TASK 4 Before execution After execution No changes in flag register 11 A certified Moodle Course on Principles of 8085 Microprocessor H L XX XX 4500 43 4501 76 TASK 4 Execute the instruction LHLD 4500 and update the contents of registers and status of Flag register. Before execution The content of 4500 – 43 The content of 4501 - 76 H L 76 43 4500 43 4501 76
  • 12. A certified Moodle Course on Principles of 8085 Microprocessor