SlideShare a Scribd company logo
..
Computer Organization ALA
Semester 4
CSE A
Topic: PROGRAM CONTROL
Introduction to the contentIntroduction to the content
Instructions are always stored in successive memory
locations.
Each time an instruction is fetched from memory, the
program counter is incremented so that it contains the
address of the next instruction in sequence.
Specifically, program control instruction when executed may
change the address value in program counter and cause the
flow of control to be altered.
Topics in Program ControlTopics in Program Control
•Status bit conditions
•Conditional Branch Instructions
•Subroutine Call and Return
•Program interrupt & types
status bit conditionsstatus bit conditions
The status register is a hardware register that contains
information about the state of the processor..
The status register lets an instruction take action
contingent on the outcome of a previous instruction.
The status register in a traditional processor design
includes at least three central flags: Zero, Carry, and
Overflow, which are set or cleared automatically as effects
of arithmetic and bit manipulation operations.
Program control
What are conditional branch instructions?What are conditional branch instructions?
The term branching can be used when referring
to programs in high level languages as well as
program written in machine code or assembly
language.
In high-level programming languages, branches
usually take the form of conditional statements of
various forms that encapsulate the instruction
sequence that will be executed if the conditions
are satisfied..
Machine level branch instructions are sometimes
called jump instructions.
Subroutine CallSubroutine Call
•A subroutine is a self-contained sequence of
instructions that perform a given computational
task.
During the execution of a program , a subroutine
may be called to perform its function many times
at various points.
Subroutine ReturnSubroutine Return
The subroutine may return a computed
value to its caller (its return value), or
provide various result values or output
parameters.
A subroutine call may also have side
effects such as modifying data structures in
a computer memory, reading from or
writing to a peripheral device, creating a
file, halting the program or the machine, or
even delaying the program's execution for
a specified timeout
Program control
Program control
Program InterruptProgram Interrupt
When a Process is executed by the CPU and
when a user Request for another Process then
this will create disturbance for the Running
Process.This is also called as the Interrupt.
Interrupts can be generated by User, Some Error
Conditions and also by Software’s and the
hardware’s. So that When an interrupt has
Occurred then the CPU will handle by using the
Fetch, decode and Execute Operations.
Interrupts allow the operating system to take
notice of an external event, such as a mouse click.
Supervisor ModeSupervisor Mode
The execution mode on some processors which
enables execution of all instructions, including
privileged instructions.
It may also give access to a different address
space, to memory management hardware and to
other peripherals.
This is the mode in which the operating system
usually runs.
In computer terms, supervisor mode is a
hardware-mediated flag which can be changed by
code running in system-level software.
Types of program interruptTypes of program interrupt
External
Internal
Software
External InterruptsExternal Interrupts
They come from I/O devices, from a timing
device, from a circuit monitoring the power
supply, or from any other external source.
Timeout interrupt may result from a program
that is an endless loop and thus exceeded its time
allocation.
Internal InterruptsInternal Interrupts
They arise from illegal use of an instruction or
date.They are also called TRAPS.
These erros occur due as a result of premature
termination of the instruction execution.
The service program that processes the internal
interrupt determines the corrective measure to
be taken.
Software interruptsSoftware interrupts
It is a special instruction that behaves like an
interrupt rather than a subroutine call.
It can be used by the programmer to initiate an
interrupt procedure at any desired point in the
program.
It is mainly used in supervisor mode.
THANKYOUTHANKYOU
Ad

More Related Content

What's hot (20)

Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
Faisal Hussain
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
rishi ram khanal
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
PreethiSureshkumar1
 
Instruction set and instruction execution cycle
Instruction set and instruction execution cycleInstruction set and instruction execution cycle
Instruction set and instruction execution cycle
Mkaur01
 
priority interrupt computer organization
priority interrupt computer organizationpriority interrupt computer organization
priority interrupt computer organization
chnrketan
 
Program control instructions
Program control instructionsProgram control instructions
Program control instructions
Dr. Girish GS
 
Instruction Execution Cycle
Instruction Execution CycleInstruction Execution Cycle
Instruction Execution Cycle
utsav_shah
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
Vinit Raut
 
Instruction codes
Instruction codesInstruction codes
Instruction codes
pradeepa velmurugan
 
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
priya Nithya
 
Instruction cycle with interrupts
Instruction cycle with interruptsInstruction cycle with interrupts
Instruction cycle with interrupts
Shubham Jain
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memory
Deepak John
 
Instruction Formats
Instruction FormatsInstruction Formats
Instruction Formats
RaaviKapoor
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer Architecture
InteX Research Lab
 
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
shweta-sharma99
 
Computer architecture pipelining
Computer architecture pipeliningComputer architecture pipelining
Computer architecture pipelining
Mazin Alwaaly
 
Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organization
Mazin Alwaaly
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle ppt
sheetal singh
 
Lecture 3 instruction set
Lecture 3  instruction setLecture 3  instruction set
Lecture 3 instruction set
Pradeep Kumar TS
 
Timing and control
Timing and controlTiming and control
Timing and control
chauhankapil
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
Faisal Hussain
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
rishi ram khanal
 
Instruction set and instruction execution cycle
Instruction set and instruction execution cycleInstruction set and instruction execution cycle
Instruction set and instruction execution cycle
Mkaur01
 
priority interrupt computer organization
priority interrupt computer organizationpriority interrupt computer organization
priority interrupt computer organization
chnrketan
 
Program control instructions
Program control instructionsProgram control instructions
Program control instructions
Dr. Girish GS
 
Instruction Execution Cycle
Instruction Execution CycleInstruction Execution Cycle
Instruction Execution Cycle
utsav_shah
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
Vinit Raut
 
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
priya Nithya
 
Instruction cycle with interrupts
Instruction cycle with interruptsInstruction cycle with interrupts
Instruction cycle with interrupts
Shubham Jain
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memory
Deepak John
 
Instruction Formats
Instruction FormatsInstruction Formats
Instruction Formats
RaaviKapoor
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer Architecture
InteX Research Lab
 
Computer architecture pipelining
Computer architecture pipeliningComputer architecture pipelining
Computer architecture pipelining
Mazin Alwaaly
 
Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organization
Mazin Alwaaly
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle ppt
sheetal singh
 
Timing and control
Timing and controlTiming and control
Timing and control
chauhankapil
 

Viewers also liked (17)

CISC & RISC Architecture
CISC & RISC Architecture CISC & RISC Architecture
CISC & RISC Architecture
Suvendu Kumar Dash
 
Computer Control Your Presentation
Computer Control Your PresentationComputer Control Your Presentation
Computer Control Your Presentation
Andrew Duckworth
 
Text tweens
Text tweensText tweens
Text tweens
Andrew Duckworth
 
Cs160 chapter 2
Cs160 chapter 2Cs160 chapter 2
Cs160 chapter 2
Joe Paris
 
The Basic Organization of Computers
The Basic Organization of ComputersThe Basic Organization of Computers
The Basic Organization of Computers
Tallat Satti
 
Data Manipulation and Math Instruction on RSLogix 500
Data Manipulation and Math Instruction on RSLogix 500Data Manipulation and Math Instruction on RSLogix 500
Data Manipulation and Math Instruction on RSLogix 500
Lino Hugun Saputra
 
Data transfer system
Data transfer systemData transfer system
Data transfer system
Sajan Sahu
 
Routing and routing algorithms
Routing and routing algorithmsRouting and routing algorithms
Routing and routing algorithms
Bhatt Aadil
 
Risc
RiscRisc
Risc
Piyush Rochwani
 
Reduced instruction set computers
Reduced instruction set computersReduced instruction set computers
Reduced instruction set computers
Sanjivani Sontakke
 
Data transfer scheme
Data transfer schemeData transfer scheme
Data transfer scheme
rockymani
 
Routing algorithm network layer
Routing algorithm  network layerRouting algorithm  network layer
Routing algorithm network layer
sambhenilesh
 
Data transferschemes
Data transferschemesData transferschemes
Data transferschemes
Ankush Srivastava
 
Various type of register
Various type of registerVarious type of register
Various type of register
Muhammad Taqi Hassan Bukhari
 
Synchronous and-asynchronous-data-transfer
Synchronous and-asynchronous-data-transferSynchronous and-asynchronous-data-transfer
Synchronous and-asynchronous-data-transfer
Anuj Modi
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
farimoin
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
Anuj Modi
 
Computer Control Your Presentation
Computer Control Your PresentationComputer Control Your Presentation
Computer Control Your Presentation
Andrew Duckworth
 
Cs160 chapter 2
Cs160 chapter 2Cs160 chapter 2
Cs160 chapter 2
Joe Paris
 
The Basic Organization of Computers
The Basic Organization of ComputersThe Basic Organization of Computers
The Basic Organization of Computers
Tallat Satti
 
Data Manipulation and Math Instruction on RSLogix 500
Data Manipulation and Math Instruction on RSLogix 500Data Manipulation and Math Instruction on RSLogix 500
Data Manipulation and Math Instruction on RSLogix 500
Lino Hugun Saputra
 
Data transfer system
Data transfer systemData transfer system
Data transfer system
Sajan Sahu
 
Routing and routing algorithms
Routing and routing algorithmsRouting and routing algorithms
Routing and routing algorithms
Bhatt Aadil
 
Reduced instruction set computers
Reduced instruction set computersReduced instruction set computers
Reduced instruction set computers
Sanjivani Sontakke
 
Data transfer scheme
Data transfer schemeData transfer scheme
Data transfer scheme
rockymani
 
Routing algorithm network layer
Routing algorithm  network layerRouting algorithm  network layer
Routing algorithm network layer
sambhenilesh
 
Synchronous and-asynchronous-data-transfer
Synchronous and-asynchronous-data-transferSynchronous and-asynchronous-data-transfer
Synchronous and-asynchronous-data-transfer
Anuj Modi
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
farimoin
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
Anuj Modi
 
Ad

Similar to Program control (20)

Lect15 organization
Lect15 organizationLect15 organization
Lect15 organization
Maher Alshammari
 
OPERATING SYSTEMS OVERVIEW111111111.pptx
OPERATING SYSTEMS OVERVIEW111111111.pptxOPERATING SYSTEMS OVERVIEW111111111.pptx
OPERATING SYSTEMS OVERVIEW111111111.pptx
sivaprakash170091
 
Interrupts
InterruptsInterrupts
Interrupts
Urwa Shanza
 
Operating System
Operating SystemOperating System
Operating System
guest8b0942
 
notes_Lecture-8 (Computer Architecture) 3rd Semester 2k11 (1).pdf
notes_Lecture-8 (Computer Architecture) 3rd Semester 2k11 (1).pdfnotes_Lecture-8 (Computer Architecture) 3rd Semester 2k11 (1).pdf
notes_Lecture-8 (Computer Architecture) 3rd Semester 2k11 (1).pdf
SatyamMishra828076
 
Spr ch-01
Spr ch-01Spr ch-01
Spr ch-01
Vasim Pathan
 
CS304PC:Computer Organization and Architecture Session 15 program control.pptx
CS304PC:Computer Organization and Architecture Session 15 program control.pptxCS304PC:Computer Organization and Architecture Session 15 program control.pptx
CS304PC:Computer Organization and Architecture Session 15 program control.pptx
Guru Nanak Technical Institutions
 
03. top level view of computer function & interconnection
03. top level view of computer function & interconnection03. top level view of computer function & interconnection
03. top level view of computer function & interconnection
noman yasin
 
Operating system
Operating systemOperating system
Operating system
Mark Muhama
 
Chapter 8
Chapter 8Chapter 8
Chapter 8
Er. Nawaraj Bhandari
 
Lecture1,2,3 (1).pdf
Lecture1,2,3 (1).pdfLecture1,2,3 (1).pdf
Lecture1,2,3 (1).pdf
Taufeeq8
 
COMPUTER SYSTEM ARCHITECTURE UNIT 3 FULL SLIDES
COMPUTER SYSTEM ARCHITECTURE UNIT 3 FULL SLIDESCOMPUTER SYSTEM ARCHITECTURE UNIT 3 FULL SLIDES
COMPUTER SYSTEM ARCHITECTURE UNIT 3 FULL SLIDES
ShahidSultan24
 
Chapter 3 part 2 Interconnections Computer organization
Chapter 3 part 2 Interconnections Computer organizationChapter 3 part 2 Interconnections Computer organization
Chapter 3 part 2 Interconnections Computer organization
AdeelAsghar36
 
Ss debuggers
Ss debuggersSs debuggers
Ss debuggers
sweety enit
 
Chapter_06_Processor_Structure_And_Function.pptx
Chapter_06_Processor_Structure_And_Function.pptxChapter_06_Processor_Structure_And_Function.pptx
Chapter_06_Processor_Structure_And_Function.pptx
yohannestafete
 
Functions of the Operating System
Functions of the Operating SystemFunctions of the Operating System
Functions of the Operating System
andyr91
 
Matter new
Matter newMatter new
Matter new
kanagasabai12
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
Dhaval Bagal
 
computer Architecture - input output interrupt
computer Architecture - input output interruptcomputer Architecture - input output interrupt
computer Architecture - input output interrupt
rsenthil5
 
Binary obfuscation using signals
Binary obfuscation using signalsBinary obfuscation using signals
Binary obfuscation using signals
UltraUploader
 
OPERATING SYSTEMS OVERVIEW111111111.pptx
OPERATING SYSTEMS OVERVIEW111111111.pptxOPERATING SYSTEMS OVERVIEW111111111.pptx
OPERATING SYSTEMS OVERVIEW111111111.pptx
sivaprakash170091
 
Operating System
Operating SystemOperating System
Operating System
guest8b0942
 
notes_Lecture-8 (Computer Architecture) 3rd Semester 2k11 (1).pdf
notes_Lecture-8 (Computer Architecture) 3rd Semester 2k11 (1).pdfnotes_Lecture-8 (Computer Architecture) 3rd Semester 2k11 (1).pdf
notes_Lecture-8 (Computer Architecture) 3rd Semester 2k11 (1).pdf
SatyamMishra828076
 
CS304PC:Computer Organization and Architecture Session 15 program control.pptx
CS304PC:Computer Organization and Architecture Session 15 program control.pptxCS304PC:Computer Organization and Architecture Session 15 program control.pptx
CS304PC:Computer Organization and Architecture Session 15 program control.pptx
Guru Nanak Technical Institutions
 
03. top level view of computer function & interconnection
03. top level view of computer function & interconnection03. top level view of computer function & interconnection
03. top level view of computer function & interconnection
noman yasin
 
Operating system
Operating systemOperating system
Operating system
Mark Muhama
 
Lecture1,2,3 (1).pdf
Lecture1,2,3 (1).pdfLecture1,2,3 (1).pdf
Lecture1,2,3 (1).pdf
Taufeeq8
 
COMPUTER SYSTEM ARCHITECTURE UNIT 3 FULL SLIDES
COMPUTER SYSTEM ARCHITECTURE UNIT 3 FULL SLIDESCOMPUTER SYSTEM ARCHITECTURE UNIT 3 FULL SLIDES
COMPUTER SYSTEM ARCHITECTURE UNIT 3 FULL SLIDES
ShahidSultan24
 
Chapter 3 part 2 Interconnections Computer organization
Chapter 3 part 2 Interconnections Computer organizationChapter 3 part 2 Interconnections Computer organization
Chapter 3 part 2 Interconnections Computer organization
AdeelAsghar36
 
Chapter_06_Processor_Structure_And_Function.pptx
Chapter_06_Processor_Structure_And_Function.pptxChapter_06_Processor_Structure_And_Function.pptx
Chapter_06_Processor_Structure_And_Function.pptx
yohannestafete
 
Functions of the Operating System
Functions of the Operating SystemFunctions of the Operating System
Functions of the Operating System
andyr91
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
Dhaval Bagal
 
computer Architecture - input output interrupt
computer Architecture - input output interruptcomputer Architecture - input output interrupt
computer Architecture - input output interrupt
rsenthil5
 
Binary obfuscation using signals
Binary obfuscation using signalsBinary obfuscation using signals
Binary obfuscation using signals
UltraUploader
 
Ad

More from Rahul Narang (8)

Turing Machine
Turing MachineTuring Machine
Turing Machine
Rahul Narang
 
OpAmps
OpAmpsOpAmps
OpAmps
Rahul Narang
 
Disk scheduling algo os
Disk scheduling algo osDisk scheduling algo os
Disk scheduling algo os
Rahul Narang
 
System of linear algebriac equations nsm
System of linear algebriac equations nsmSystem of linear algebriac equations nsm
System of linear algebriac equations nsm
Rahul Narang
 
Greeenhouse effects
Greeenhouse effectsGreeenhouse effects
Greeenhouse effects
Rahul Narang
 
Embarking the journey to contributorship
Embarking the journey to contributorshipEmbarking the journey to contributorship
Embarking the journey to contributorship
Rahul Narang
 
Laplace transforms
Laplace transformsLaplace transforms
Laplace transforms
Rahul Narang
 
View of data DBMS
View of data DBMSView of data DBMS
View of data DBMS
Rahul Narang
 
Disk scheduling algo os
Disk scheduling algo osDisk scheduling algo os
Disk scheduling algo os
Rahul Narang
 
System of linear algebriac equations nsm
System of linear algebriac equations nsmSystem of linear algebriac equations nsm
System of linear algebriac equations nsm
Rahul Narang
 
Greeenhouse effects
Greeenhouse effectsGreeenhouse effects
Greeenhouse effects
Rahul Narang
 
Embarking the journey to contributorship
Embarking the journey to contributorshipEmbarking the journey to contributorship
Embarking the journey to contributorship
Rahul Narang
 
Laplace transforms
Laplace transformsLaplace transforms
Laplace transforms
Rahul Narang
 

Recently uploaded (20)

Control Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptxControl Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptx
vvsasane
 
Transport modelling at SBB, presentation at EPFL in 2025
Transport modelling at SBB, presentation at EPFL in 2025Transport modelling at SBB, presentation at EPFL in 2025
Transport modelling at SBB, presentation at EPFL in 2025
Antonin Danalet
 
Using the Artificial Neural Network to Predict the Axial Strength and Strain ...
Using the Artificial Neural Network to Predict the Axial Strength and Strain ...Using the Artificial Neural Network to Predict the Axial Strength and Strain ...
Using the Artificial Neural Network to Predict the Axial Strength and Strain ...
Journal of Soft Computing in Civil Engineering
 
Lecture - 7 Canals of the topic of the civil engineering
Lecture - 7  Canals of the topic of the civil engineeringLecture - 7  Canals of the topic of the civil engineering
Lecture - 7 Canals of the topic of the civil engineering
MJawadkhan1
 
David Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry - Specializes In AWS, Microservices And Python.pdfDavid Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry
 
Construction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil EngineeringConstruction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil Engineering
Lavish Kashyap
 
Design Optimization of Reinforced Concrete Waffle Slab Using Genetic Algorithm
Design Optimization of Reinforced Concrete Waffle Slab Using Genetic AlgorithmDesign Optimization of Reinforced Concrete Waffle Slab Using Genetic Algorithm
Design Optimization of Reinforced Concrete Waffle Slab Using Genetic Algorithm
Journal of Soft Computing in Civil Engineering
 
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdfML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
rameshwarchintamani
 
Applications of Centroid in Structural Engineering
Applications of Centroid in Structural EngineeringApplications of Centroid in Structural Engineering
Applications of Centroid in Structural Engineering
suvrojyotihalder2006
 
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
PawachMetharattanara
 
Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control Monthly May 2025Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control
 
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software ApplicationsJacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia
 
hypermedia_system_revisit_roy_fielding .
hypermedia_system_revisit_roy_fielding .hypermedia_system_revisit_roy_fielding .
hypermedia_system_revisit_roy_fielding .
NABLAS株式会社
 
Design of Variable Depth Single-Span Post.pdf
Design of Variable Depth Single-Span Post.pdfDesign of Variable Depth Single-Span Post.pdf
Design of Variable Depth Single-Span Post.pdf
Kamel Farid
 
sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
ajayrm685
 
Autodesk Fusion 2025 Tutorial: User Interface
Autodesk Fusion 2025 Tutorial: User InterfaceAutodesk Fusion 2025 Tutorial: User Interface
Autodesk Fusion 2025 Tutorial: User Interface
Atif Razi
 
Uses of drones in civil construction.pdf
Uses of drones in civil construction.pdfUses of drones in civil construction.pdf
Uses of drones in civil construction.pdf
surajsen1729
 
Modelling of Concrete Compressive Strength Admixed with GGBFS Using Gene Expr...
Modelling of Concrete Compressive Strength Admixed with GGBFS Using Gene Expr...Modelling of Concrete Compressive Strength Admixed with GGBFS Using Gene Expr...
Modelling of Concrete Compressive Strength Admixed with GGBFS Using Gene Expr...
Journal of Soft Computing in Civil Engineering
 
Smart City is the Future EN - 2024 Thailand Modify V1.0.pdf
Smart City is the Future EN - 2024 Thailand Modify V1.0.pdfSmart City is the Future EN - 2024 Thailand Modify V1.0.pdf
Smart City is the Future EN - 2024 Thailand Modify V1.0.pdf
PawachMetharattanara
 
22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf
22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf
22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf
Guru Nanak Technical Institutions
 
Control Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptxControl Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptx
vvsasane
 
Transport modelling at SBB, presentation at EPFL in 2025
Transport modelling at SBB, presentation at EPFL in 2025Transport modelling at SBB, presentation at EPFL in 2025
Transport modelling at SBB, presentation at EPFL in 2025
Antonin Danalet
 
Lecture - 7 Canals of the topic of the civil engineering
Lecture - 7  Canals of the topic of the civil engineeringLecture - 7  Canals of the topic of the civil engineering
Lecture - 7 Canals of the topic of the civil engineering
MJawadkhan1
 
David Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry - Specializes In AWS, Microservices And Python.pdfDavid Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry
 
Construction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil EngineeringConstruction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil Engineering
Lavish Kashyap
 
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdfML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
rameshwarchintamani
 
Applications of Centroid in Structural Engineering
Applications of Centroid in Structural EngineeringApplications of Centroid in Structural Engineering
Applications of Centroid in Structural Engineering
suvrojyotihalder2006
 
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
PawachMetharattanara
 
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software ApplicationsJacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia
 
hypermedia_system_revisit_roy_fielding .
hypermedia_system_revisit_roy_fielding .hypermedia_system_revisit_roy_fielding .
hypermedia_system_revisit_roy_fielding .
NABLAS株式会社
 
Design of Variable Depth Single-Span Post.pdf
Design of Variable Depth Single-Span Post.pdfDesign of Variable Depth Single-Span Post.pdf
Design of Variable Depth Single-Span Post.pdf
Kamel Farid
 
sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
ajayrm685
 
Autodesk Fusion 2025 Tutorial: User Interface
Autodesk Fusion 2025 Tutorial: User InterfaceAutodesk Fusion 2025 Tutorial: User Interface
Autodesk Fusion 2025 Tutorial: User Interface
Atif Razi
 
Uses of drones in civil construction.pdf
Uses of drones in civil construction.pdfUses of drones in civil construction.pdf
Uses of drones in civil construction.pdf
surajsen1729
 
Smart City is the Future EN - 2024 Thailand Modify V1.0.pdf
Smart City is the Future EN - 2024 Thailand Modify V1.0.pdfSmart City is the Future EN - 2024 Thailand Modify V1.0.pdf
Smart City is the Future EN - 2024 Thailand Modify V1.0.pdf
PawachMetharattanara
 

Program control

  • 1. .. Computer Organization ALA Semester 4 CSE A Topic: PROGRAM CONTROL
  • 2. Introduction to the contentIntroduction to the content Instructions are always stored in successive memory locations. Each time an instruction is fetched from memory, the program counter is incremented so that it contains the address of the next instruction in sequence. Specifically, program control instruction when executed may change the address value in program counter and cause the flow of control to be altered.
  • 3. Topics in Program ControlTopics in Program Control •Status bit conditions •Conditional Branch Instructions •Subroutine Call and Return •Program interrupt & types
  • 4. status bit conditionsstatus bit conditions The status register is a hardware register that contains information about the state of the processor.. The status register lets an instruction take action contingent on the outcome of a previous instruction. The status register in a traditional processor design includes at least three central flags: Zero, Carry, and Overflow, which are set or cleared automatically as effects of arithmetic and bit manipulation operations.
  • 6. What are conditional branch instructions?What are conditional branch instructions? The term branching can be used when referring to programs in high level languages as well as program written in machine code or assembly language. In high-level programming languages, branches usually take the form of conditional statements of various forms that encapsulate the instruction sequence that will be executed if the conditions are satisfied.. Machine level branch instructions are sometimes called jump instructions.
  • 7. Subroutine CallSubroutine Call •A subroutine is a self-contained sequence of instructions that perform a given computational task. During the execution of a program , a subroutine may be called to perform its function many times at various points.
  • 8. Subroutine ReturnSubroutine Return The subroutine may return a computed value to its caller (its return value), or provide various result values or output parameters. A subroutine call may also have side effects such as modifying data structures in a computer memory, reading from or writing to a peripheral device, creating a file, halting the program or the machine, or even delaying the program's execution for a specified timeout
  • 11. Program InterruptProgram Interrupt When a Process is executed by the CPU and when a user Request for another Process then this will create disturbance for the Running Process.This is also called as the Interrupt. Interrupts can be generated by User, Some Error Conditions and also by Software’s and the hardware’s. So that When an interrupt has Occurred then the CPU will handle by using the Fetch, decode and Execute Operations. Interrupts allow the operating system to take notice of an external event, such as a mouse click.
  • 12. Supervisor ModeSupervisor Mode The execution mode on some processors which enables execution of all instructions, including privileged instructions. It may also give access to a different address space, to memory management hardware and to other peripherals. This is the mode in which the operating system usually runs. In computer terms, supervisor mode is a hardware-mediated flag which can be changed by code running in system-level software.
  • 13. Types of program interruptTypes of program interrupt External Internal Software
  • 14. External InterruptsExternal Interrupts They come from I/O devices, from a timing device, from a circuit monitoring the power supply, or from any other external source. Timeout interrupt may result from a program that is an endless loop and thus exceeded its time allocation.
  • 15. Internal InterruptsInternal Interrupts They arise from illegal use of an instruction or date.They are also called TRAPS. These erros occur due as a result of premature termination of the instruction execution. The service program that processes the internal interrupt determines the corrective measure to be taken.
  • 16. Software interruptsSoftware interrupts It is a special instruction that behaves like an interrupt rather than a subroutine call. It can be used by the programmer to initiate an interrupt procedure at any desired point in the program. It is mainly used in supervisor mode.
  翻译: