SlideShare a Scribd company logo
DYNAMIC DEBUGGING IN 8085
MICROPROCESSOR
How does a debugger help in Debugging in Programming ?
1.The debugger allows you to check at the contents of registers and memory locations when the
program execution is in process.
2.Debugging in Programming allows you to change the contents of registers and memory locations
and re execute the program.
3.Some debuggers allow you to stop execution after each instruction so you can check or alter
memory and register contents.
4.A debugger also allows you to set a breakpoint at any point in your program. When you run a
program, the system will execute instructions upto this breakpoint and stop. You can then examine
register and memory contents to see if the results are correct at that point. If the results are correct,
you can move the break point to a later point in your program. If results are not correct, you can
check the program up to that point to find out why they are not correct.
2
DYNAMIC DEBUGGING:
 Checking for logical and syntax errors in the program is called as debugging.
TYPES:
1.STATIC
2.DYNAMIC
3
DYNAMIC DEBUGGING:
STATIC DEBUGGING:
Checking for errors in the program manually using paper and pencil is
known as static debugging.
4
DYNAMIC DEBUGGING:
Checking for errors in the program by observing the execution of instructions is
called as DYNAMIC DEBUGGING.
TOOLS FOR DYNAMIC DEBUGGING:
1. SINGLE STEP
2.REGISTER EXAMINE
3.BREAK POINT
5
SINGLE STEP:
 Allows you to execute one instruction at a time and observe the results of each
instruction.
 A Single step facility is built with a hard wired logic circuit.
 By pressing Single-step key in the microprocessor ,able to observe addresses and
codes as they are executed.
 Single-step technique will be able to spot
 incorrect address
 incorrect jump locations for loops
 incorrect data or missing codes.
 To effectively use this technique reduce the number of loops and delay counts
to minimum number.
 Better to use this technique for short programs.
 This technique helps to infer the flag status by observing the execution of jump
instructions.
6
REGISTER EXAMINE:
 Register Examine Key in the microprocessor allows to examine the contents of the
microprocessor register.
 By pressing appropriate keys, the monitor program displays the contents of the
registers.
 This technique is used in conjunction with either the single step or break point
facilities.
 After executing a block of instructions ,we can examine the register contents of the
program at a critical juncture and compare the contents with the expected
outcomes.
7
BREAK POINT:
 Breakpoint facility is a software routine that allows to execute a program in sections.
 The break point in a program can be set in a program using RST instructions.
 When we push the EXECUTE key, program will be executed until the breakpoint, using
monitor we can check the registers for expected results.
 If the segment of the program found satisfactory ,a second breakpoint can be set at a
subsequent memory address to debug the next segment of the program.
 With Breakpoint facility we can isolate the segment of the program with errors.
 Then that segment of the program can be debugged with the single step facility.
 The break point technique can be used to check out the timing loop, I/O section and
Interrupts.
8
SAMPLE PROGRAMS
9
Add two 8-bit numbers
Example
(2501 H) = 99H
(2502 H) = 39H
Result (2503 H) = 99H + 39H = D2H
Since,
1 0 0 1 1 0 0 1 (99H)
+ 0 0 1 1 1 0 0 1 (39H)
1 1 0 1 0 0 1 0 (D2H)
10
2501 99
2502 39
2503 D2
LXI H, 2501H : "Get address of first number in H-
L pair. Now H-L points to 2501H"
MOV A, M : "Get first operand in accumulator"
INX H : "Increment content of H-L pair. Now, H-
L points 2502H"
ADD M : "Add first and second operand"
INX H : "H-L points 4002H"
MOV M, A : "Store result at 2503H"
HLT : "Stop"
11
Subtract two 8-bit numbers
Example
(2501 H) = 49H
(2502 H) = 32H
Result (2503 H) = 49H - 32H = 17H
12
Program
LXI H, 2501H : "Get address of first number in H-
L pair. Now H-L points to 2501H"
MOV A, M : "Get first operand in accumulator"
INX H : "Increment content of H-L pair. Now, H-
L points 2502H"
SUB M : "Subtract first to second operand"
INX H : "H-L points 4002H"
MOV M, A : "Store result at 2503H"
HLT : "Stop"
13
14
Ad

More Related Content

What's hot (20)

8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
mahalakshmimalini
 
Subband Coding
Subband CodingSubband Coding
Subband Coding
Mihika Shah
 
8051 memory
8051 memory8051 memory
8051 memory
Mayank Garg
 
Stack and subroutine
Stack and subroutineStack and subroutine
Stack and subroutine
Suchismita Paul
 
8051 Addressing Modes
8051 Addressing Modes8051 Addressing Modes
8051 Addressing Modes
Senthil Kumar
 
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptxPROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
SanjayV73
 
Computer organization algorithms like addition and subtraction and multiplica...
Computer organization algorithms like addition and subtraction and multiplica...Computer organization algorithms like addition and subtraction and multiplica...
Computer organization algorithms like addition and subtraction and multiplica...
michaelaaron25322
 
Memory Addressing
Memory AddressingMemory Addressing
Memory Addressing
chauhankapil
 
8085 microprocessor notes
8085 microprocessor notes8085 microprocessor notes
8085 microprocessor notes
Prof. Dr. K. Adisesha
 
Interrupts
InterruptsInterrupts
Interrupts
Urwa Shanza
 
List of 8085 programs
List of 8085 programsList of 8085 programs
List of 8085 programs
ASHOKA INSTITUTE OF TECHNOLOGY & MANAGEMENT,VARANASI,U.P.
 
Usart 8251
Usart 8251Usart 8251
Usart 8251
saravanamanikandan02
 
Stack and subroutine
Stack and subroutineStack and subroutine
Stack and subroutine
milandhara
 
LCD Interacing with 8051
LCD Interacing with 8051LCD Interacing with 8051
LCD Interacing with 8051
Sudhanshu Janwadkar
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
Muthu Manickam
 
Counters & time delay
Counters & time delayCounters & time delay
Counters & time delay
Hemant Chetwani
 
Adc interfacing
Adc interfacingAdc interfacing
Adc interfacing
Monica Gunjal
 
DMA controller intel 8257
DMA controller intel 8257DMA controller intel 8257
DMA controller intel 8257
Daniel Ilunga
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
John Williams
 
Chapter 1-Microprocessors, Microcomputers, and Assembly Language
Chapter 1-Microprocessors, Microcomputers, and Assembly LanguageChapter 1-Microprocessors, Microcomputers, and Assembly Language
Chapter 1-Microprocessors, Microcomputers, and Assembly Language
cmkandemir
 
8051 Addressing Modes
8051 Addressing Modes8051 Addressing Modes
8051 Addressing Modes
Senthil Kumar
 
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptxPROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
SanjayV73
 
Computer organization algorithms like addition and subtraction and multiplica...
Computer organization algorithms like addition and subtraction and multiplica...Computer organization algorithms like addition and subtraction and multiplica...
Computer organization algorithms like addition and subtraction and multiplica...
michaelaaron25322
 
Stack and subroutine
Stack and subroutineStack and subroutine
Stack and subroutine
milandhara
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
Muthu Manickam
 
Counters & time delay
Counters & time delayCounters & time delay
Counters & time delay
Hemant Chetwani
 
DMA controller intel 8257
DMA controller intel 8257DMA controller intel 8257
DMA controller intel 8257
Daniel Ilunga
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
John Williams
 
Chapter 1-Microprocessors, Microcomputers, and Assembly Language
Chapter 1-Microprocessors, Microcomputers, and Assembly LanguageChapter 1-Microprocessors, Microcomputers, and Assembly Language
Chapter 1-Microprocessors, Microcomputers, and Assembly Language
cmkandemir
 

Similar to Dynamic debugging in 8085 microprocessor (20)

Programming C ppt for learning foundations
Programming C ppt for learning foundationsProgramming C ppt for learning foundations
Programming C ppt for learning foundations
ssuser65733f
 
PLCErrorHunterBrochure
PLCErrorHunterBrochurePLCErrorHunterBrochure
PLCErrorHunterBrochure
Tony Simeonov
 
RETURN ORIENTED OBFUSCATION
RETURN ORIENTED OBFUSCATIONRETURN ORIENTED OBFUSCATION
RETURN ORIENTED OBFUSCATION
csandit
 
ES-CH5.ppt
ES-CH5.pptES-CH5.ppt
ES-CH5.ppt
alaakaraja1
 
Mp lab manual
Mp lab manualMp lab manual
Mp lab manual
Pradeep Kumar
 
introduction to computing & programming
introduction to computing &  programmingintroduction to computing &  programming
introduction to computing & programming
Kalai Selvi
 
Prática de Studio 5000, inserir novos drives e instruções.
Prática de Studio 5000, inserir novos drives e instruções.Prática de Studio 5000, inserir novos drives e instruções.
Prática de Studio 5000, inserir novos drives e instruções.
Adinan de Avila Tomé
 
Modul PLC Programming.pdf
Modul PLC Programming.pdfModul PLC Programming.pdf
Modul PLC Programming.pdf
MOCHAMAD RIZKY BINTANG ARDYANSYAH
 
Basic Debugging
Basic DebuggingBasic Debugging
Basic Debugging
Sathish Kumar G
 
Abapdebuggingfrombasictoadvance 140214043218-phpapp01
Abapdebuggingfrombasictoadvance 140214043218-phpapp01Abapdebuggingfrombasictoadvance 140214043218-phpapp01
Abapdebuggingfrombasictoadvance 140214043218-phpapp01
IT TRAINER
 
Introduction to Embedded C for 8051 and Implementation of Timer and Interrupt...
Introduction to Embedded C for 8051 and Implementation of Timer and Interrupt...Introduction to Embedded C for 8051 and Implementation of Timer and Interrupt...
Introduction to Embedded C for 8051 and Implementation of Timer and Interrupt...
Sivaranjan Goswami
 
BOTTLE LINE SIMULLATION IN LOGIXPRO
BOTTLE LINE SIMULLATION IN LOGIXPROBOTTLE LINE SIMULLATION IN LOGIXPRO
BOTTLE LINE SIMULLATION IN LOGIXPRO
Mohan Tangudu
 
Ss debuggers
Ss debuggersSs debuggers
Ss debuggers
sweety enit
 
PCCF UNIT 1.pptx
PCCF UNIT 1.pptxPCCF UNIT 1.pptx
PCCF UNIT 1.pptx
DivyaKS12
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithm
mshoaib15
 
module1 new c programming for begginers.pptx
module1 new c programming for begginers.pptxmodule1 new c programming for begginers.pptx
module1 new c programming for begginers.pptx
amruthavarshini849703
 
Binary obfuscation using signals
Binary obfuscation using signalsBinary obfuscation using signals
Binary obfuscation using signals
UltraUploader
 
S D D Program Development Tools
S D D  Program  Development  ToolsS D D  Program  Development  Tools
S D D Program Development Tools
gavhays
 
ELE2303 Assign 1 Page 1 ELE2303 Embedded Systems Design.docx
ELE2303 Assign 1  Page  1 ELE2303 Embedded Systems Design.docxELE2303 Assign 1  Page  1 ELE2303 Embedded Systems Design.docx
ELE2303 Assign 1 Page 1 ELE2303 Embedded Systems Design.docx
jack60216
 
Unit 2
Unit 2Unit 2
Unit 2
vishal choudhary
 
Programming C ppt for learning foundations
Programming C ppt for learning foundationsProgramming C ppt for learning foundations
Programming C ppt for learning foundations
ssuser65733f
 
PLCErrorHunterBrochure
PLCErrorHunterBrochurePLCErrorHunterBrochure
PLCErrorHunterBrochure
Tony Simeonov
 
RETURN ORIENTED OBFUSCATION
RETURN ORIENTED OBFUSCATIONRETURN ORIENTED OBFUSCATION
RETURN ORIENTED OBFUSCATION
csandit
 
introduction to computing & programming
introduction to computing &  programmingintroduction to computing &  programming
introduction to computing & programming
Kalai Selvi
 
Prática de Studio 5000, inserir novos drives e instruções.
Prática de Studio 5000, inserir novos drives e instruções.Prática de Studio 5000, inserir novos drives e instruções.
Prática de Studio 5000, inserir novos drives e instruções.
Adinan de Avila Tomé
 
Abapdebuggingfrombasictoadvance 140214043218-phpapp01
Abapdebuggingfrombasictoadvance 140214043218-phpapp01Abapdebuggingfrombasictoadvance 140214043218-phpapp01
Abapdebuggingfrombasictoadvance 140214043218-phpapp01
IT TRAINER
 
Introduction to Embedded C for 8051 and Implementation of Timer and Interrupt...
Introduction to Embedded C for 8051 and Implementation of Timer and Interrupt...Introduction to Embedded C for 8051 and Implementation of Timer and Interrupt...
Introduction to Embedded C for 8051 and Implementation of Timer and Interrupt...
Sivaranjan Goswami
 
BOTTLE LINE SIMULLATION IN LOGIXPRO
BOTTLE LINE SIMULLATION IN LOGIXPROBOTTLE LINE SIMULLATION IN LOGIXPRO
BOTTLE LINE SIMULLATION IN LOGIXPRO
Mohan Tangudu
 
PCCF UNIT 1.pptx
PCCF UNIT 1.pptxPCCF UNIT 1.pptx
PCCF UNIT 1.pptx
DivyaKS12
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithm
mshoaib15
 
module1 new c programming for begginers.pptx
module1 new c programming for begginers.pptxmodule1 new c programming for begginers.pptx
module1 new c programming for begginers.pptx
amruthavarshini849703
 
Binary obfuscation using signals
Binary obfuscation using signalsBinary obfuscation using signals
Binary obfuscation using signals
UltraUploader
 
S D D Program Development Tools
S D D  Program  Development  ToolsS D D  Program  Development  Tools
S D D Program Development Tools
gavhays
 
ELE2303 Assign 1 Page 1 ELE2303 Embedded Systems Design.docx
ELE2303 Assign 1  Page  1 ELE2303 Embedded Systems Design.docxELE2303 Assign 1  Page  1 ELE2303 Embedded Systems Design.docx
ELE2303 Assign 1 Page 1 ELE2303 Embedded Systems Design.docx
jack60216
 
Ad

More from RamaPrabha24 (12)

programming techniques
programming techniquesprogramming techniques
programming techniques
RamaPrabha24
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modes
RamaPrabha24
 
instruction set and classificaion
instruction set and classificaioninstruction set and classificaion
instruction set and classificaion
RamaPrabha24
 
LOGICAL OPERATIONS IN 8085 MICROPROCESSOR
LOGICAL OPERATIONS IN 8085 MICROPROCESSORLOGICAL OPERATIONS IN 8085 MICROPROCESSOR
LOGICAL OPERATIONS IN 8085 MICROPROCESSOR
RamaPrabha24
 
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSORARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
RamaPrabha24
 
8085 DATA TRANSFER INSTRUCTIONS
8085 DATA TRANSFER INSTRUCTIONS8085 DATA TRANSFER INSTRUCTIONS
8085 DATA TRANSFER INSTRUCTIONS
RamaPrabha24
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
RamaPrabha24
 
PINDIAGRAM OF 8085 MICROPROCESSOR
PINDIAGRAM OF 8085 MICROPROCESSORPINDIAGRAM OF 8085 MICROPROCESSOR
PINDIAGRAM OF 8085 MICROPROCESSOR
RamaPrabha24
 
memory classification
memory classificationmemory classification
memory classification
RamaPrabha24
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
RamaPrabha24
 
Basic terms used in microprocessor
Basic terms used in microprocessorBasic terms used in microprocessor
Basic terms used in microprocessor
RamaPrabha24
 
Applets in Java
Applets in JavaApplets in Java
Applets in Java
RamaPrabha24
 
programming techniques
programming techniquesprogramming techniques
programming techniques
RamaPrabha24
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modes
RamaPrabha24
 
instruction set and classificaion
instruction set and classificaioninstruction set and classificaion
instruction set and classificaion
RamaPrabha24
 
LOGICAL OPERATIONS IN 8085 MICROPROCESSOR
LOGICAL OPERATIONS IN 8085 MICROPROCESSORLOGICAL OPERATIONS IN 8085 MICROPROCESSOR
LOGICAL OPERATIONS IN 8085 MICROPROCESSOR
RamaPrabha24
 
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSORARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
RamaPrabha24
 
8085 DATA TRANSFER INSTRUCTIONS
8085 DATA TRANSFER INSTRUCTIONS8085 DATA TRANSFER INSTRUCTIONS
8085 DATA TRANSFER INSTRUCTIONS
RamaPrabha24
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
RamaPrabha24
 
PINDIAGRAM OF 8085 MICROPROCESSOR
PINDIAGRAM OF 8085 MICROPROCESSORPINDIAGRAM OF 8085 MICROPROCESSOR
PINDIAGRAM OF 8085 MICROPROCESSOR
RamaPrabha24
 
memory classification
memory classificationmemory classification
memory classification
RamaPrabha24
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
RamaPrabha24
 
Basic terms used in microprocessor
Basic terms used in microprocessorBasic terms used in microprocessor
Basic terms used in microprocessor
RamaPrabha24
 
Ad

Recently uploaded (20)

Top Creative Design Trends to Watch in 2025.pdf
Top Creative Design Trends to Watch in 2025.pdfTop Creative Design Trends to Watch in 2025.pdf
Top Creative Design Trends to Watch in 2025.pdf
INKLUSIVE Design Agency
 
101 Marketing for Design Entrepreneurs.pptx
101 Marketing for Design Entrepreneurs.pptx101 Marketing for Design Entrepreneurs.pptx
101 Marketing for Design Entrepreneurs.pptx
Prof. Hany El-Said
 
Renee iPhone Recovery Crack 2025 [Latest]
Renee iPhone Recovery Crack 2025 [Latest]Renee iPhone Recovery Crack 2025 [Latest]
Renee iPhone Recovery Crack 2025 [Latest]
Telecom / Mobile
 
Morgenbooster - Systems and Transition. 14.05.2025.pdf
Morgenbooster - Systems and Transition. 14.05.2025.pdfMorgenbooster - Systems and Transition. 14.05.2025.pdf
Morgenbooster - Systems and Transition. 14.05.2025.pdf
1508 A/S
 
Carte d'indentité1 a model for a nes country
Carte d'indentité1 a model for a nes countryCarte d'indentité1 a model for a nes country
Carte d'indentité1 a model for a nes country
stephaniethomas940921
 
McKinsey – Mobility Consumer Pulse 2024 | Global Trends in EVs, Shared Mobili...
McKinsey – Mobility Consumer Pulse 2024 | Global Trends in EVs, Shared Mobili...McKinsey – Mobility Consumer Pulse 2024 | Global Trends in EVs, Shared Mobili...
McKinsey – Mobility Consumer Pulse 2024 | Global Trends in EVs, Shared Mobili...
INKPPT
 
mastering the art of drone design and analysis.pdf
mastering the art of drone design and analysis.pdfmastering the art of drone design and analysis.pdf
mastering the art of drone design and analysis.pdf
VikasBokka
 
OSTEOBLASTOS (1).pdferkfkekfnfnfnfnfnfnd
OSTEOBLASTOS (1).pdferkfkekfnfnfnfnfnfndOSTEOBLASTOS (1).pdferkfkekfnfnfnfnfnfnd
OSTEOBLASTOS (1).pdferkfkekfnfnfnfnfnfnd
israelalvarado033
 
Deloitte – State of AI in the Enterprise | Actionable AI Strategies & Insights
Deloitte – State of AI in the Enterprise | Actionable AI Strategies & InsightsDeloitte – State of AI in the Enterprise | Actionable AI Strategies & Insights
Deloitte – State of AI in the Enterprise | Actionable AI Strategies & Insights
INKPPT
 
We Trust AI... Until We Don’t_ The UX of Comfort Zones by Dan Maccarone and P...
We Trust AI... Until We Don’t_ The UX of Comfort Zones by Dan Maccarone and P...We Trust AI... Until We Don’t_ The UX of Comfort Zones by Dan Maccarone and P...
We Trust AI... Until We Don’t_ The UX of Comfort Zones by Dan Maccarone and P...
UXPA Boston
 
McKinsey’s Fashion on Climate Report: A Roadmap to Cut Emissions by 50% by 2030
McKinsey’s Fashion on Climate Report: A Roadmap to Cut Emissions by 50% by 2030McKinsey’s Fashion on Climate Report: A Roadmap to Cut Emissions by 50% by 2030
McKinsey’s Fashion on Climate Report: A Roadmap to Cut Emissions by 50% by 2030
INKPPT
 
Beautiful Motherhood (Kal-el's Shows Slideshow)
Beautiful Motherhood (Kal-el's Shows Slideshow)Beautiful Motherhood (Kal-el's Shows Slideshow)
Beautiful Motherhood (Kal-el's Shows Slideshow)
Kal-el's Shows
 
KPMG – Global Tech Report 2022 | Web3, Metaverse & Digital Transformation Trends
KPMG – Global Tech Report 2022 | Web3, Metaverse & Digital Transformation TrendsKPMG – Global Tech Report 2022 | Web3, Metaverse & Digital Transformation Trends
KPMG – Global Tech Report 2022 | Web3, Metaverse & Digital Transformation Trends
INKPPT
 
Forest Education Presentation In Green Beige Nature Watercolor Style_20250516...
Forest Education Presentation In Green Beige Nature Watercolor Style_20250516...Forest Education Presentation In Green Beige Nature Watercolor Style_20250516...
Forest Education Presentation In Green Beige Nature Watercolor Style_20250516...
elnarababayeva2000
 
SEERAT PPT[1][1].pptx project in sant ba
SEERAT PPT[1][1].pptx project in sant baSEERAT PPT[1][1].pptx project in sant ba
SEERAT PPT[1][1].pptx project in sant ba
RanvirSingh151
 
Using AI to streamline personas and journey map creation by Kyle Soucy
Using AI to streamline personas and journey map creation by Kyle SoucyUsing AI to streamline personas and journey map creation by Kyle Soucy
Using AI to streamline personas and journey map creation by Kyle Soucy
UXPA Boston
 
ppt nm epanet org irrigation system (1).pptx
ppt nm epanet org irrigation system (1).pptxppt nm epanet org irrigation system (1).pptx
ppt nm epanet org irrigation system (1).pptx
dondeepakff33
 
Flying Airplane Theme Infographics by Slidesgo (1).pptx
Flying Airplane Theme Infographics by Slidesgo (1).pptxFlying Airplane Theme Infographics by Slidesgo (1).pptx
Flying Airplane Theme Infographics by Slidesgo (1).pptx
sapohaf902
 
Materials and visual culture for design students.pptx
Materials and visual culture for design students.pptxMaterials and visual culture for design students.pptx
Materials and visual culture for design students.pptx
Prof. Hany El-Said
 
exploring human values through eeg and deep learning methods
exploring human values through eeg and deep learning methodsexploring human values through eeg and deep learning methods
exploring human values through eeg and deep learning methods
shobhabasavaraj762
 
Top Creative Design Trends to Watch in 2025.pdf
Top Creative Design Trends to Watch in 2025.pdfTop Creative Design Trends to Watch in 2025.pdf
Top Creative Design Trends to Watch in 2025.pdf
INKLUSIVE Design Agency
 
101 Marketing for Design Entrepreneurs.pptx
101 Marketing for Design Entrepreneurs.pptx101 Marketing for Design Entrepreneurs.pptx
101 Marketing for Design Entrepreneurs.pptx
Prof. Hany El-Said
 
Renee iPhone Recovery Crack 2025 [Latest]
Renee iPhone Recovery Crack 2025 [Latest]Renee iPhone Recovery Crack 2025 [Latest]
Renee iPhone Recovery Crack 2025 [Latest]
Telecom / Mobile
 
Morgenbooster - Systems and Transition. 14.05.2025.pdf
Morgenbooster - Systems and Transition. 14.05.2025.pdfMorgenbooster - Systems and Transition. 14.05.2025.pdf
Morgenbooster - Systems and Transition. 14.05.2025.pdf
1508 A/S
 
Carte d'indentité1 a model for a nes country
Carte d'indentité1 a model for a nes countryCarte d'indentité1 a model for a nes country
Carte d'indentité1 a model for a nes country
stephaniethomas940921
 
McKinsey – Mobility Consumer Pulse 2024 | Global Trends in EVs, Shared Mobili...
McKinsey – Mobility Consumer Pulse 2024 | Global Trends in EVs, Shared Mobili...McKinsey – Mobility Consumer Pulse 2024 | Global Trends in EVs, Shared Mobili...
McKinsey – Mobility Consumer Pulse 2024 | Global Trends in EVs, Shared Mobili...
INKPPT
 
mastering the art of drone design and analysis.pdf
mastering the art of drone design and analysis.pdfmastering the art of drone design and analysis.pdf
mastering the art of drone design and analysis.pdf
VikasBokka
 
OSTEOBLASTOS (1).pdferkfkekfnfnfnfnfnfnd
OSTEOBLASTOS (1).pdferkfkekfnfnfnfnfnfndOSTEOBLASTOS (1).pdferkfkekfnfnfnfnfnfnd
OSTEOBLASTOS (1).pdferkfkekfnfnfnfnfnfnd
israelalvarado033
 
Deloitte – State of AI in the Enterprise | Actionable AI Strategies & Insights
Deloitte – State of AI in the Enterprise | Actionable AI Strategies & InsightsDeloitte – State of AI in the Enterprise | Actionable AI Strategies & Insights
Deloitte – State of AI in the Enterprise | Actionable AI Strategies & Insights
INKPPT
 
We Trust AI... Until We Don’t_ The UX of Comfort Zones by Dan Maccarone and P...
We Trust AI... Until We Don’t_ The UX of Comfort Zones by Dan Maccarone and P...We Trust AI... Until We Don’t_ The UX of Comfort Zones by Dan Maccarone and P...
We Trust AI... Until We Don’t_ The UX of Comfort Zones by Dan Maccarone and P...
UXPA Boston
 
McKinsey’s Fashion on Climate Report: A Roadmap to Cut Emissions by 50% by 2030
McKinsey’s Fashion on Climate Report: A Roadmap to Cut Emissions by 50% by 2030McKinsey’s Fashion on Climate Report: A Roadmap to Cut Emissions by 50% by 2030
McKinsey’s Fashion on Climate Report: A Roadmap to Cut Emissions by 50% by 2030
INKPPT
 
Beautiful Motherhood (Kal-el's Shows Slideshow)
Beautiful Motherhood (Kal-el's Shows Slideshow)Beautiful Motherhood (Kal-el's Shows Slideshow)
Beautiful Motherhood (Kal-el's Shows Slideshow)
Kal-el's Shows
 
KPMG – Global Tech Report 2022 | Web3, Metaverse & Digital Transformation Trends
KPMG – Global Tech Report 2022 | Web3, Metaverse & Digital Transformation TrendsKPMG – Global Tech Report 2022 | Web3, Metaverse & Digital Transformation Trends
KPMG – Global Tech Report 2022 | Web3, Metaverse & Digital Transformation Trends
INKPPT
 
Forest Education Presentation In Green Beige Nature Watercolor Style_20250516...
Forest Education Presentation In Green Beige Nature Watercolor Style_20250516...Forest Education Presentation In Green Beige Nature Watercolor Style_20250516...
Forest Education Presentation In Green Beige Nature Watercolor Style_20250516...
elnarababayeva2000
 
SEERAT PPT[1][1].pptx project in sant ba
SEERAT PPT[1][1].pptx project in sant baSEERAT PPT[1][1].pptx project in sant ba
SEERAT PPT[1][1].pptx project in sant ba
RanvirSingh151
 
Using AI to streamline personas and journey map creation by Kyle Soucy
Using AI to streamline personas and journey map creation by Kyle SoucyUsing AI to streamline personas and journey map creation by Kyle Soucy
Using AI to streamline personas and journey map creation by Kyle Soucy
UXPA Boston
 
ppt nm epanet org irrigation system (1).pptx
ppt nm epanet org irrigation system (1).pptxppt nm epanet org irrigation system (1).pptx
ppt nm epanet org irrigation system (1).pptx
dondeepakff33
 
Flying Airplane Theme Infographics by Slidesgo (1).pptx
Flying Airplane Theme Infographics by Slidesgo (1).pptxFlying Airplane Theme Infographics by Slidesgo (1).pptx
Flying Airplane Theme Infographics by Slidesgo (1).pptx
sapohaf902
 
Materials and visual culture for design students.pptx
Materials and visual culture for design students.pptxMaterials and visual culture for design students.pptx
Materials and visual culture for design students.pptx
Prof. Hany El-Said
 
exploring human values through eeg and deep learning methods
exploring human values through eeg and deep learning methodsexploring human values through eeg and deep learning methods
exploring human values through eeg and deep learning methods
shobhabasavaraj762
 

Dynamic debugging in 8085 microprocessor

  • 1. DYNAMIC DEBUGGING IN 8085 MICROPROCESSOR
  • 2. How does a debugger help in Debugging in Programming ? 1.The debugger allows you to check at the contents of registers and memory locations when the program execution is in process. 2.Debugging in Programming allows you to change the contents of registers and memory locations and re execute the program. 3.Some debuggers allow you to stop execution after each instruction so you can check or alter memory and register contents. 4.A debugger also allows you to set a breakpoint at any point in your program. When you run a program, the system will execute instructions upto this breakpoint and stop. You can then examine register and memory contents to see if the results are correct at that point. If the results are correct, you can move the break point to a later point in your program. If results are not correct, you can check the program up to that point to find out why they are not correct. 2
  • 3. DYNAMIC DEBUGGING:  Checking for logical and syntax errors in the program is called as debugging. TYPES: 1.STATIC 2.DYNAMIC 3
  • 4. DYNAMIC DEBUGGING: STATIC DEBUGGING: Checking for errors in the program manually using paper and pencil is known as static debugging. 4
  • 5. DYNAMIC DEBUGGING: Checking for errors in the program by observing the execution of instructions is called as DYNAMIC DEBUGGING. TOOLS FOR DYNAMIC DEBUGGING: 1. SINGLE STEP 2.REGISTER EXAMINE 3.BREAK POINT 5
  • 6. SINGLE STEP:  Allows you to execute one instruction at a time and observe the results of each instruction.  A Single step facility is built with a hard wired logic circuit.  By pressing Single-step key in the microprocessor ,able to observe addresses and codes as they are executed.  Single-step technique will be able to spot  incorrect address  incorrect jump locations for loops  incorrect data or missing codes.  To effectively use this technique reduce the number of loops and delay counts to minimum number.  Better to use this technique for short programs.  This technique helps to infer the flag status by observing the execution of jump instructions. 6
  • 7. REGISTER EXAMINE:  Register Examine Key in the microprocessor allows to examine the contents of the microprocessor register.  By pressing appropriate keys, the monitor program displays the contents of the registers.  This technique is used in conjunction with either the single step or break point facilities.  After executing a block of instructions ,we can examine the register contents of the program at a critical juncture and compare the contents with the expected outcomes. 7
  • 8. BREAK POINT:  Breakpoint facility is a software routine that allows to execute a program in sections.  The break point in a program can be set in a program using RST instructions.  When we push the EXECUTE key, program will be executed until the breakpoint, using monitor we can check the registers for expected results.  If the segment of the program found satisfactory ,a second breakpoint can be set at a subsequent memory address to debug the next segment of the program.  With Breakpoint facility we can isolate the segment of the program with errors.  Then that segment of the program can be debugged with the single step facility.  The break point technique can be used to check out the timing loop, I/O section and Interrupts. 8
  • 10. Add two 8-bit numbers Example (2501 H) = 99H (2502 H) = 39H Result (2503 H) = 99H + 39H = D2H Since, 1 0 0 1 1 0 0 1 (99H) + 0 0 1 1 1 0 0 1 (39H) 1 1 0 1 0 0 1 0 (D2H) 10 2501 99 2502 39 2503 D2
  • 11. LXI H, 2501H : "Get address of first number in H- L pair. Now H-L points to 2501H" MOV A, M : "Get first operand in accumulator" INX H : "Increment content of H-L pair. Now, H- L points 2502H" ADD M : "Add first and second operand" INX H : "H-L points 4002H" MOV M, A : "Store result at 2503H" HLT : "Stop" 11
  • 12. Subtract two 8-bit numbers Example (2501 H) = 49H (2502 H) = 32H Result (2503 H) = 49H - 32H = 17H 12
  • 13. Program LXI H, 2501H : "Get address of first number in H- L pair. Now H-L points to 2501H" MOV A, M : "Get first operand in accumulator" INX H : "Increment content of H-L pair. Now, H- L points 2502H" SUB M : "Subtract first to second operand" INX H : "H-L points 4002H" MOV M, A : "Store result at 2503H" HLT : "Stop" 13
  • 14. 14
  翻译: