SlideShare a Scribd company logo
1 of 11
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
S
T
O
R
E
I
N
S
T
R
U
C
T
I
O
N
S
Syntax STA 16 Bit address – 3 byte STORE A REG DIRECT
STA 4000
Register Contents Before execution
Register Contents After execution
4000 7E 55
A
4000 55 55
A
Status of Flag Register
Flags are not affected
No change in Flag contents
Des – Memory
Src – A reg
STAX B
Register Contents Before execution
Syntax STAX B/D reg.pair – 1 byte STORE A REG INDIRECT
Status of Flag Register
Flags are not affected
No change in Flag contents
3
A certified Moodle Course on Principles of 8085 Microprocessor
Hint
des –
content of
address in
B/D reg
pair
Src – A reg
A
B
2C XX
40 00
F
C
4000 9E
Register Contents After execution
A
B
2C XX
40 00
F
C
4000 2C
SHLD 4000
Register Contents Before execution
Syntax SHLD 16 Bit address – 3 byte STORE HL REG DIRECT
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 – H
& L
Des
Address
+1-H
Address
- L
Register Contents After execution
H 5F 9E
4000 XX
4001 XX
L
H 5F 9E
4000 9E
4001 5F
L
STORES 16 BIT DATA
SPHL
Register Contents Before execution
Register Contents After execution
Syntax SPHL none – 1 byte COPY HL REGISTERS TO STACK
Status of Flag
register
Flags are not
affected
No change in Flag
contents
5
A certified Moodle Course on Principles of 8085 Microprocessor
Hint
Src is HL
Des is
SP
45 00
SP XXXX
H L
45 00
SP 4500
H L
Stores directly in to Stack
Pointer (SP)
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
6
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
7
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
8
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
9
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
10
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.3 Data Transfer Instructions - Store Instructions

8080 8085 assembly language_programming manual programando
8080 8085 assembly  language_programming manual programando 8080 8085 assembly  language_programming manual programando
8080 8085 assembly language_programming manual programando
Universidad de Tarapaca
 
shuja's cv for Instrumentation, DCS and Power plant.
shuja's cv for Instrumentation, DCS and Power plant.shuja's cv for Instrumentation, DCS and Power plant.
shuja's cv for Instrumentation, DCS and Power plant.
Shuja Khalid
 
Pang YS Resumes Jan_ 2016
Pang YS Resumes Jan_ 2016Pang YS Resumes Jan_ 2016
Pang YS Resumes Jan_ 2016
Pang You sin
 
2012 Moxa Brazil Channel Partner's Workshop_Vertical Market Solutions_0424201...
2012 Moxa Brazil Channel Partner's Workshop_Vertical Market Solutions_0424201...2012 Moxa Brazil Channel Partner's Workshop_Vertical Market Solutions_0424201...
2012 Moxa Brazil Channel Partner's Workshop_Vertical Market Solutions_0424201...
Eric Lo
 

Similar to Week 2.3 Data Transfer Instructions - Store Instructions (20)

8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
Assembly language i
Assembly language iAssembly language i
Assembly language i
 
8085 instruction-set part 1
8085 instruction-set part 18085 instruction-set part 1
8085 instruction-set part 1
 
Basics of plc_programming
Basics of plc_programmingBasics of plc_programming
Basics of plc_programming
 
Basics of plc programming
Basics of plc programmingBasics of plc programming
Basics of plc programming
 
Ecet 365 Enhance teaching / snaptutorial.com
Ecet 365   Enhance teaching / snaptutorial.comEcet 365   Enhance teaching / snaptutorial.com
Ecet 365 Enhance teaching / snaptutorial.com
 
Www educationsmaterials-com-2020-12-microprocessor-btech-paper-2020-kanpur-html
Www educationsmaterials-com-2020-12-microprocessor-btech-paper-2020-kanpur-htmlWww educationsmaterials-com-2020-12-microprocessor-btech-paper-2020-kanpur-html
Www educationsmaterials-com-2020-12-microprocessor-btech-paper-2020-kanpur-html
 
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
 
8080 8085 assembly language_programming manual programando
8080 8085 assembly  language_programming manual programando 8080 8085 assembly  language_programming manual programando
8080 8085 assembly language_programming manual programando
 
DanielResume 5-4-15
DanielResume 5-4-15DanielResume 5-4-15
DanielResume 5-4-15
 
ECET 365 Exceptional Education / snaptutorial.com
ECET 365 Exceptional Education / snaptutorial.comECET 365 Exceptional Education / snaptutorial.com
ECET 365 Exceptional Education / snaptutorial.com
 
Ecet 365 Education Redefined - snaptutorial.com
Ecet 365    Education Redefined - snaptutorial.comEcet 365    Education Redefined - snaptutorial.com
Ecet 365 Education Redefined - snaptutorial.com
 
shuja's cv for Instrumentation, DCS and Power plant.
shuja's cv for Instrumentation, DCS and Power plant.shuja's cv for Instrumentation, DCS and Power plant.
shuja's cv for Instrumentation, DCS and Power plant.
 
Pang YS Resumes Jan_ 2016
Pang YS Resumes Jan_ 2016Pang YS Resumes Jan_ 2016
Pang YS Resumes Jan_ 2016
 
instruction set and classificaion
instruction set and classificaioninstruction set and classificaion
instruction set and classificaion
 
Eee3420 lecture03 rev2011
Eee3420 lecture03 rev2011Eee3420 lecture03 rev2011
Eee3420 lecture03 rev2011
 
2012 Moxa Brazil Channel Partner's Workshop_Vertical Market Solutions_0424201...
2012 Moxa Brazil Channel Partner's Workshop_Vertical Market Solutions_0424201...2012 Moxa Brazil Channel Partner's Workshop_Vertical Market Solutions_0424201...
2012 Moxa Brazil Channel Partner's Workshop_Vertical Market Solutions_0424201...
 
ECET 365 Success Begins/Newtonhelp.com
ECET 365 Success Begins/Newtonhelp.comECET 365 Success Begins/Newtonhelp.com
ECET 365 Success Begins/Newtonhelp.com
 
Dcs capabilities
Dcs capabilitiesDcs capabilities
Dcs capabilities
 
Unit4_DBMS.pptx
Unit4_DBMS.pptxUnit4_DBMS.pptx
Unit4_DBMS.pptx
 

Recently uploaded

Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
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
 

Recently uploaded (20)

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
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
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
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
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 ...
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
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
 
💚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...
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
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
 
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
 
Signal Processing and Linear System Analysis
Signal Processing and Linear System AnalysisSignal Processing and Linear System Analysis
Signal Processing and Linear System Analysis
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
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
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 

Week 2.3 Data Transfer Instructions - Store 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 S T O R E I N S T R U C T I O N S Syntax STA 16 Bit address – 3 byte STORE A REG DIRECT STA 4000 Register Contents Before execution Register Contents After execution 4000 7E 55 A 4000 55 55 A Status of Flag Register Flags are not affected No change in Flag contents Des – Memory Src – A reg
  • 3. STAX B Register Contents Before execution Syntax STAX B/D reg.pair – 1 byte STORE A REG INDIRECT Status of Flag Register Flags are not affected No change in Flag contents 3 A certified Moodle Course on Principles of 8085 Microprocessor Hint des – content of address in B/D reg pair Src – A reg A B 2C XX 40 00 F C 4000 9E Register Contents After execution A B 2C XX 40 00 F C 4000 2C
  • 4. SHLD 4000 Register Contents Before execution Syntax SHLD 16 Bit address – 3 byte STORE HL REG DIRECT 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 – H & L Des Address +1-H Address - L Register Contents After execution H 5F 9E 4000 XX 4001 XX L H 5F 9E 4000 9E 4001 5F L STORES 16 BIT DATA
  • 5. SPHL Register Contents Before execution Register Contents After execution Syntax SPHL none – 1 byte COPY HL REGISTERS TO STACK Status of Flag register Flags are not affected No change in Flag contents 5 A certified Moodle Course on Principles of 8085 Microprocessor Hint Src is HL Des is SP 45 00 SP XXXX H L 45 00 SP 4500 H L Stores directly in to Stack Pointer (SP)
  • 6. 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 6 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
  • 7. SOLUTION - TASK 1 Before execution After execution No changes in flag register 7 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
  • 8. SOLUTION - TASK 2 Before execution After execution No changes in flag register 8 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
  • 9. SOLUTION - TASK 3 Before execution After execution No changes in flag register 9 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
  • 10. SOLUTION - TASK 4 Before execution After execution No changes in flag register 10 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
  • 11. A certified Moodle Course on Principles of 8085 Microprocessor