SlideShare ist ein Scribd-Unternehmen logo
1 von 10
D R . R . H E P ZI P R A M I L A D E VA M A N I ,
A S S I S TA N T P R O F E S S O R O F P H Y S I C S ,
V. V. VA N N I A P E RU M A L C O L L E G E F O R W O M E N ,
V I R U D H U N A G A R .
STACK IN 8085 MICROPROCESSOR
STACK
ï‚— The stack is a group of memory locations in the RAM
(R/W) memory that is used for temporary storage of
binary information during the execution of the
program.
ï‚— The last memory location of the occupied portion of
the stack is called stacktop.
ï‚— The starting memory location of the stack is defined
in the main program by using LXI or SPHL
instruction.
STACK
ï‚— Data are stored in the
stack on last-in-first-out
(LIFO) principle and
data are retrieved from
the stack first-in-last-out
principle.
ï‚— Figure shows typical
stack and stack top
location.
INSTRUCTIONS
ï‚— PUSH instruction is used to store data in stack
ï‚— POP instruction is to retrieve the contents
ï‚— A register pair is always specified along with these
PUSH and POP instructions.
PUSH B POP B
PUSH D POP D
PUSH H POP H
PUSH PSW POP PSW
B,D,H PSW specifies register pairs BC, DE, HL, A and
Flags
PUSH INSTRUCTION
ï‚— PUSH Rp
ï‚— PUSH instruction can be explained with an example
LXI SP,2605H
LXI B, 2550H
PUSH B
Delay Counter
POP B
PUSH Instruction
ï‚— Step 1: LXI SP, 2605 will initialize SP register 2605
ï‚— Step 2: LXI B, 2550H will initialize or load BC register
pair with 2550H data so B = 25 and C = 50.
ï‚— Step 3: The execution of PUSH b instruction will be
ï‚— The stack pointer is decreased by one to 2604H and the
contents of the B register are copied to memory location
2604H.
ï‚— The stack pointer is again decreased by one to 2603H and
the contents of the C register are copied to memory
location 2603H.
ï‚— The contents of the register pair BC are not destroyed.
However , BC is made available for the delay counter.
ï‚— The execution of PUSH operation is shown in Figure.
PUSH OPERATION
POP INSTRUCTION
ï‚— After the delay count, the instruction POP B restores the
original contents of the register pair BC.
ï‚— The execution of POP B instruction will be
ï‚— The contents of the top of the stack location shown by the
stack pointer are copied in the C register and the stack pointer
is increased by one to 2604H
[C]  [SP], [SP]  [SP] + 1
ï‚— The contents of the top of the stack are copied in the B
register and the stack pointer is increased by one
[B]  [SP], [SP]  [SP] + 1
ï‚— The contents of the memory locations 2603H and2604H are
not destroyed until some other data bytes are stored in these
locations.
ï‚— The execution of POP operation is shown in Figure.
POP OPERATION
REFERENCE
ï‚— Microprocessor , Microcomputer ,
Microcontroller and interfacing- M.K
Gupta,Paragon International Publishers, 2nd
Edition(2007).

Weitere ähnliche Inhalte

Was ist angesagt?

Stack and subroutine
Stack and subroutineStack and subroutine
Stack and subroutineSuchismita Paul
 
PPT on 8085 Microprocessor
PPT on 8085 Microprocessor  PPT on 8085 Microprocessor
PPT on 8085 Microprocessor DebrajJana4
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086Dr. AISHWARYA N
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 80869840596838
 
Instruction Set of 8086 Microprocessor
Instruction Set of 8086 MicroprocessorInstruction Set of 8086 Microprocessor
Instruction Set of 8086 MicroprocessorAshita Agrawal
 
80286 microprocessor
80286 microprocessor80286 microprocessor
80286 microprocessorAvin Mathew
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architectureprasadpawaskar
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controllerTech_MX
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051SARITHA REDDY
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kVijay Kumar
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentationmahalakshmimalini
 
Stack organization
Stack organizationStack organization
Stack organizationchauhankapil
 
Code Conversion in 8085 Microprocessor
Code Conversion in 8085 MicroprocessorCode Conversion in 8085 Microprocessor
Code Conversion in 8085 MicroprocessorMOHIT AGARWAL
 
program status word
program status wordprogram status word
program status wordsheetalverma38
 
Interrupts of microprocessor 8085
Interrupts of microprocessor  8085Interrupts of microprocessor  8085
Interrupts of microprocessor 8085mujeebkhanelectronic
 
8086 modes
8086 modes8086 modes
8086 modesPDFSHARE
 
Addressing Modes Of 8086
Addressing Modes Of 8086Addressing Modes Of 8086
Addressing Modes Of 8086Ikhlas Rahman
 

Was ist angesagt? (20)

Stack and subroutine
Stack and subroutineStack and subroutine
Stack and subroutine
 
PPT on 8085 Microprocessor
PPT on 8085 Microprocessor  PPT on 8085 Microprocessor
PPT on 8085 Microprocessor
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
List of 8085 programs
List of 8085 programsList of 8085 programs
List of 8085 programs
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Instruction Set of 8086 Microprocessor
Instruction Set of 8086 MicroprocessorInstruction Set of 8086 Microprocessor
Instruction Set of 8086 Microprocessor
 
80286 microprocessor
80286 microprocessor80286 microprocessor
80286 microprocessor
 
DAA AND DAS
DAA AND DASDAA AND DAS
DAA AND DAS
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architecture
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controller
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
 
Stack organization
Stack organizationStack organization
Stack organization
 
Code Conversion in 8085 Microprocessor
Code Conversion in 8085 MicroprocessorCode Conversion in 8085 Microprocessor
Code Conversion in 8085 Microprocessor
 
program status word
program status wordprogram status word
program status word
 
Interrupts of microprocessor 8085
Interrupts of microprocessor  8085Interrupts of microprocessor  8085
Interrupts of microprocessor 8085
 
8086 modes
8086 modes8086 modes
8086 modes
 
Addressing Modes Of 8086
Addressing Modes Of 8086Addressing Modes Of 8086
Addressing Modes Of 8086
 

Ähnlich wie Stack in 8085 microprocessor

T imingdiagram
T imingdiagramT imingdiagram
T imingdiagrampuja00
 
Lecture 05 NOP and Stack Group of Instructions
Lecture 05 NOP and Stack Group of InstructionsLecture 05 NOP and Stack Group of Instructions
Lecture 05 NOP and Stack Group of InstructionsZeeshan Ahmed
 
UNIT II.pptx
UNIT II.pptxUNIT II.pptx
UNIT II.pptxssuser47c811
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction setJLoknathDora
 
Stack and subroutine
Stack and subroutineStack and subroutine
Stack and subroutinemilandhara
 
B sc e 5.2 mp unit 2 soft ware(alp)
B sc e 5.2 mp unit 2 soft ware(alp)B sc e 5.2 mp unit 2 soft ware(alp)
B sc e 5.2 mp unit 2 soft ware(alp)MahiboobAliMulla
 
implementation of data instrucions in emu8086
implementation of data instrucions in emu8086implementation of data instrucions in emu8086
implementation of data instrucions in emu8086COMSATS Abbottabad
 
Unit-2-Stack_basic_Input_Output-4-12-2022-8am.ppt
Unit-2-Stack_basic_Input_Output-4-12-2022-8am.pptUnit-2-Stack_basic_Input_Output-4-12-2022-8am.ppt
Unit-2-Stack_basic_Input_Output-4-12-2022-8am.pptIronMan665214
 
instruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).pptinstruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).pptssuserb448e2
 
Instruction set-of-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085saleForce
 
8085 instructions
8085 instructions8085 instructions
8085 instructionsAkshay Sharma
 
Instruction set of 8085
Instruction set of 8085Instruction set of 8085
Instruction set of 8085venkateshkannat
 
Stack and subroutine
Stack and subroutineStack and subroutine
Stack and subroutineAshim Saha
 
Instructionset8085 by NCIT SAROZ BISTA SIR
Instructionset8085 by NCIT SAROZ BISTA SIRInstructionset8085 by NCIT SAROZ BISTA SIR
Instructionset8085 by NCIT SAROZ BISTA SIRTHEE CAVE
 
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
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086aviban
 

Ähnlich wie Stack in 8085 microprocessor (20)

T imingdiagram
T imingdiagramT imingdiagram
T imingdiagram
 
Lecture 05 NOP and Stack Group of Instructions
Lecture 05 NOP and Stack Group of InstructionsLecture 05 NOP and Stack Group of Instructions
Lecture 05 NOP and Stack Group of Instructions
 
UNIT II.pptx
UNIT II.pptxUNIT II.pptx
UNIT II.pptx
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
Stack and subroutine
Stack and subroutineStack and subroutine
Stack and subroutine
 
B sc e 5.2 mp unit 2 soft ware(alp)
B sc e 5.2 mp unit 2 soft ware(alp)B sc e 5.2 mp unit 2 soft ware(alp)
B sc e 5.2 mp unit 2 soft ware(alp)
 
implementation of data instrucions in emu8086
implementation of data instrucions in emu8086implementation of data instrucions in emu8086
implementation of data instrucions in emu8086
 
Unit-2-Stack_basic_Input_Output-4-12-2022-8am.ppt
Unit-2-Stack_basic_Input_Output-4-12-2022-8am.pptUnit-2-Stack_basic_Input_Output-4-12-2022-8am.ppt
Unit-2-Stack_basic_Input_Output-4-12-2022-8am.ppt
 
instruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).pptinstruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).ppt
 
8085 instructions details
8085 instructions details8085 instructions details
8085 instructions details
 
Instruction set-of-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085
 
8085 instructions
8085 instructions8085 instructions
8085 instructions
 
Instruction set of 8085
Instruction set of 8085Instruction set of 8085
Instruction set of 8085
 
Stack and subroutine
Stack and subroutineStack and subroutine
Stack and subroutine
 
Chapter 5 notes
Chapter 5 notesChapter 5 notes
Chapter 5 notes
 
Instructionset8085 by NCIT SAROZ BISTA SIR
Instructionset8085 by NCIT SAROZ BISTA SIRInstructionset8085 by NCIT SAROZ BISTA SIR
Instructionset8085 by NCIT SAROZ BISTA SIR
 
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
 
Chapter 9
Chapter 9Chapter 9
Chapter 9
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Lecture6
Lecture6Lecture6
Lecture6
 

Mehr von hepzijustin

TRANSDUCER INTRODUCTION AND TYPES OF TRANSDUCERS.pptx
TRANSDUCER INTRODUCTION AND TYPES OF TRANSDUCERS.pptxTRANSDUCER INTRODUCTION AND TYPES OF TRANSDUCERS.pptx
TRANSDUCER INTRODUCTION AND TYPES OF TRANSDUCERS.pptxhepzijustin
 
Single Channel Data Acquisition System.pptx
Single Channel Data Acquisition System.pptxSingle Channel Data Acquisition System.pptx
Single Channel Data Acquisition System.pptxhepzijustin
 
Resolving power of Prism Brief Theory .pptx
Resolving power  of Prism Brief Theory .pptxResolving power  of Prism Brief Theory .pptx
Resolving power of Prism Brief Theory .pptxhepzijustin
 
RESOLVING POWER OF A PLANE DIFFRACTION GRATING THEORY.pptx
RESOLVING POWER OF A PLANE DIFFRACTION GRATING THEORY.pptxRESOLVING POWER OF A PLANE DIFFRACTION GRATING THEORY.pptx
RESOLVING POWER OF A PLANE DIFFRACTION GRATING THEORY.pptxhepzijustin
 
LINEAR VARIABLE DIFFERENTIAL TRANSDUCER.pptx
LINEAR VARIABLE DIFFERENTIAL TRANSDUCER.pptxLINEAR VARIABLE DIFFERENTIAL TRANSDUCER.pptx
LINEAR VARIABLE DIFFERENTIAL TRANSDUCER.pptxhepzijustin
 
Inverted R-2R Ladder Digital to Analog Converter.pptx
Inverted R-2R Ladder Digital to Analog Converter.pptxInverted R-2R Ladder Digital to Analog Converter.pptx
Inverted R-2R Ladder Digital to Analog Converter.pptxhepzijustin
 
What is Digital to Analog Conversion .ppt
What is Digital to Analog Conversion .pptWhat is Digital to Analog Conversion .ppt
What is Digital to Analog Conversion .ppthepzijustin
 
Digital Data Acquisition System Intro.pptx
Digital Data Acquisition System Intro.pptxDigital Data Acquisition System Intro.pptx
Digital Data Acquisition System Intro.pptxhepzijustin
 
R/2R Ladder Digital to Analog Converter.pptx
R/2R Ladder Digital to Analog Converter.pptxR/2R Ladder Digital to Analog Converter.pptx
R/2R Ladder Digital to Analog Converter.pptxhepzijustin
 
Comparison of prism and grating spectra.pptx
Comparison of prism and grating spectra.pptxComparison of prism and grating spectra.pptx
Comparison of prism and grating spectra.pptxhepzijustin
 
characteristics of transducers accuracy linearity
characteristics of transducers accuracy linearitycharacteristics of transducers accuracy linearity
characteristics of transducers accuracy linearityhepzijustin
 
Analog to digital conversion techniques.pptx
Analog to digital conversion techniques.pptxAnalog to digital conversion techniques.pptx
Analog to digital conversion techniques.pptxhepzijustin
 
Successive Approximation ADC.pptx
Successive Approximation ADC.pptxSuccessive Approximation ADC.pptx
Successive Approximation ADC.pptxhepzijustin
 
Dual Slope ADC.pptx
Dual Slope ADC.pptxDual Slope ADC.pptx
Dual Slope ADC.pptxhepzijustin
 
Single Slope ADC.pptx
Single Slope ADC.pptxSingle Slope ADC.pptx
Single Slope ADC.pptxhepzijustin
 
Analog to Digital Converter .pptx
Analog to Digital Converter .pptxAnalog to Digital Converter .pptx
Analog to Digital Converter .pptxhepzijustin
 
Basic Principle of signal display.pptx
Basic Principle of signal display.pptxBasic Principle of signal display.pptx
Basic Principle of signal display.pptxhepzijustin
 
Structure of Telephone System.pptx
Structure of Telephone System.pptxStructure of Telephone System.pptx
Structure of Telephone System.pptxhepzijustin
 
Torque Acting on a coil placed in a rotating magnetic field.pptx
Torque Acting on a coil placed in a rotating magnetic field.pptxTorque Acting on a coil placed in a rotating magnetic field.pptx
Torque Acting on a coil placed in a rotating magnetic field.pptxhepzijustin
 
Ring Counter.pptx
Ring Counter.pptxRing Counter.pptx
Ring Counter.pptxhepzijustin
 

Mehr von hepzijustin (20)

TRANSDUCER INTRODUCTION AND TYPES OF TRANSDUCERS.pptx
TRANSDUCER INTRODUCTION AND TYPES OF TRANSDUCERS.pptxTRANSDUCER INTRODUCTION AND TYPES OF TRANSDUCERS.pptx
TRANSDUCER INTRODUCTION AND TYPES OF TRANSDUCERS.pptx
 
Single Channel Data Acquisition System.pptx
Single Channel Data Acquisition System.pptxSingle Channel Data Acquisition System.pptx
Single Channel Data Acquisition System.pptx
 
Resolving power of Prism Brief Theory .pptx
Resolving power  of Prism Brief Theory .pptxResolving power  of Prism Brief Theory .pptx
Resolving power of Prism Brief Theory .pptx
 
RESOLVING POWER OF A PLANE DIFFRACTION GRATING THEORY.pptx
RESOLVING POWER OF A PLANE DIFFRACTION GRATING THEORY.pptxRESOLVING POWER OF A PLANE DIFFRACTION GRATING THEORY.pptx
RESOLVING POWER OF A PLANE DIFFRACTION GRATING THEORY.pptx
 
LINEAR VARIABLE DIFFERENTIAL TRANSDUCER.pptx
LINEAR VARIABLE DIFFERENTIAL TRANSDUCER.pptxLINEAR VARIABLE DIFFERENTIAL TRANSDUCER.pptx
LINEAR VARIABLE DIFFERENTIAL TRANSDUCER.pptx
 
Inverted R-2R Ladder Digital to Analog Converter.pptx
Inverted R-2R Ladder Digital to Analog Converter.pptxInverted R-2R Ladder Digital to Analog Converter.pptx
Inverted R-2R Ladder Digital to Analog Converter.pptx
 
What is Digital to Analog Conversion .ppt
What is Digital to Analog Conversion .pptWhat is Digital to Analog Conversion .ppt
What is Digital to Analog Conversion .ppt
 
Digital Data Acquisition System Intro.pptx
Digital Data Acquisition System Intro.pptxDigital Data Acquisition System Intro.pptx
Digital Data Acquisition System Intro.pptx
 
R/2R Ladder Digital to Analog Converter.pptx
R/2R Ladder Digital to Analog Converter.pptxR/2R Ladder Digital to Analog Converter.pptx
R/2R Ladder Digital to Analog Converter.pptx
 
Comparison of prism and grating spectra.pptx
Comparison of prism and grating spectra.pptxComparison of prism and grating spectra.pptx
Comparison of prism and grating spectra.pptx
 
characteristics of transducers accuracy linearity
characteristics of transducers accuracy linearitycharacteristics of transducers accuracy linearity
characteristics of transducers accuracy linearity
 
Analog to digital conversion techniques.pptx
Analog to digital conversion techniques.pptxAnalog to digital conversion techniques.pptx
Analog to digital conversion techniques.pptx
 
Successive Approximation ADC.pptx
Successive Approximation ADC.pptxSuccessive Approximation ADC.pptx
Successive Approximation ADC.pptx
 
Dual Slope ADC.pptx
Dual Slope ADC.pptxDual Slope ADC.pptx
Dual Slope ADC.pptx
 
Single Slope ADC.pptx
Single Slope ADC.pptxSingle Slope ADC.pptx
Single Slope ADC.pptx
 
Analog to Digital Converter .pptx
Analog to Digital Converter .pptxAnalog to Digital Converter .pptx
Analog to Digital Converter .pptx
 
Basic Principle of signal display.pptx
Basic Principle of signal display.pptxBasic Principle of signal display.pptx
Basic Principle of signal display.pptx
 
Structure of Telephone System.pptx
Structure of Telephone System.pptxStructure of Telephone System.pptx
Structure of Telephone System.pptx
 
Torque Acting on a coil placed in a rotating magnetic field.pptx
Torque Acting on a coil placed in a rotating magnetic field.pptxTorque Acting on a coil placed in a rotating magnetic field.pptx
Torque Acting on a coil placed in a rotating magnetic field.pptx
 
Ring Counter.pptx
Ring Counter.pptxRing Counter.pptx
Ring Counter.pptx
 

Kürzlich hochgeladen

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
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
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Dr. Mazin Mohamed alkathiri
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
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
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 

Kürzlich hochgeladen (20)

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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 ...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
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
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
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
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 

Stack in 8085 microprocessor

  • 1. D R . R . H E P ZI P R A M I L A D E VA M A N I , A S S I S TA N T P R O F E S S O R O F P H Y S I C S , V. V. VA N N I A P E RU M A L C O L L E G E F O R W O M E N , V I R U D H U N A G A R . STACK IN 8085 MICROPROCESSOR
  • 2. STACK ï‚— The stack is a group of memory locations in the RAM (R/W) memory that is used for temporary storage of binary information during the execution of the program. ï‚— The last memory location of the occupied portion of the stack is called stacktop. ï‚— The starting memory location of the stack is defined in the main program by using LXI or SPHL instruction.
  • 3. STACK ï‚— Data are stored in the stack on last-in-first-out (LIFO) principle and data are retrieved from the stack first-in-last-out principle. ï‚— Figure shows typical stack and stack top location.
  • 4. INSTRUCTIONS ï‚— PUSH instruction is used to store data in stack ï‚— POP instruction is to retrieve the contents ï‚— A register pair is always specified along with these PUSH and POP instructions. PUSH B POP B PUSH D POP D PUSH H POP H PUSH PSW POP PSW B,D,H PSW specifies register pairs BC, DE, HL, A and Flags
  • 5. PUSH INSTRUCTION ï‚— PUSH Rp ï‚— PUSH instruction can be explained with an example LXI SP,2605H LXI B, 2550H PUSH B Delay Counter POP B
  • 6. PUSH Instruction ï‚— Step 1: LXI SP, 2605 will initialize SP register 2605 ï‚— Step 2: LXI B, 2550H will initialize or load BC register pair with 2550H data so B = 25 and C = 50. ï‚— Step 3: The execution of PUSH b instruction will be ï‚— The stack pointer is decreased by one to 2604H and the contents of the B register are copied to memory location 2604H. ï‚— The stack pointer is again decreased by one to 2603H and the contents of the C register are copied to memory location 2603H. ï‚— The contents of the register pair BC are not destroyed. However , BC is made available for the delay counter. ï‚— The execution of PUSH operation is shown in Figure.
  • 8. POP INSTRUCTION ï‚— After the delay count, the instruction POP B restores the original contents of the register pair BC. ï‚— The execution of POP B instruction will be ï‚— The contents of the top of the stack location shown by the stack pointer are copied in the C register and the stack pointer is increased by one to 2604H [C]  [SP], [SP]  [SP] + 1 ï‚— The contents of the top of the stack are copied in the B register and the stack pointer is increased by one [B]  [SP], [SP]  [SP] + 1 ï‚— The contents of the memory locations 2603H and2604H are not destroyed until some other data bytes are stored in these locations. ï‚— The execution of POP operation is shown in Figure.
  • 10. REFERENCE ï‚— Microprocessor , Microcomputer , Microcontroller and interfacing- M.K Gupta,Paragon International Publishers, 2nd Edition(2007).