SlideShare a Scribd company logo
Unit -1
CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS IN
OPERATING SYSTEM BY RAM K PALIWAL
9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 1
CPU Register
CPU registers
The registers vary in number and type, depending on the computer architecture.
◦ Accumulators
◦ Index registers
◦ Stack pointers
◦ General-purpose registers
◦ condition-code information registers.
When any process is running along with the program counter, this state
information (CPU register information) must be saved when an interrupt occurs,
to allow the process to be continued correctly afterward
9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 2
Instruction Execution
9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 3
All computers have an instruction execution cycle. A basic instruction
execution cycle can be broken down into the following steps:
1. Fetch cycle
2. Execute cycle
Instruction Execution
The fetched instruction is loaded into the instruction register (IR). The
instruction contains bits that specify the action the processor is to take. The
processor interprets the instruction and performs the required action. In
general, these actions fall into four categories:
1. Processor-memory: Data may be transferred from processor to memory or
from memory to processor.
2. Processor-I/O: Data may be transferred to or from a peripheral device by
transferring between the processor and an I/O module.
3. Data processing: The processor may perform some arithmetic or logic
operation on data.
4. Control: An instruction may specify that the sequence of execution be
altered.
9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 4
Interrupts
Virtually all computers provide a mechanism by which other
modules (I/O, memory) may interrupt the normal sequencing of the
processor.
Interrupts are provided primarily as a way to improve processor
utilization.
For example, most I/O devices are much slower than the processor.
Types of Interrupts:
Hardware
Software
9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 5
Interrupts
Hardware Interrupts: If the signal for the processor is from external
device or hardware is called hardware interrupts.
Example: from keyboard we will press the key to do some action this
pressing of key in keyboard will generate a signal which is given to
the processor to do action, such interrupts are called hardware
interrupts.
Hardware interrupts can be classified into two types they are
◦ Maskable Interrupt: The hardware interrupts which can be delayed when a
much highest priority interrupt has occurred to the processor.
◦ Non Maskable Interrupt: The hardware interrupts which cannot be delayed
and should process by the processor immediately.
9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 6
Interrupts
Software Interrupts: Software interrupt can also divided in to two
types.
◦ Normal Interrupts: the interrupts which are caused by the software
instructions are called software instructions.
◦ Exception: unplanned interrupts while executing a program is called
Exception. For example: while executing a program if we got a value
which should be divided by zero is called a exception.
9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 7
Interrupts
Classes of Interrupt
Program: Generated by some condition that occurs as a result of an
instruction execution, such as arithmetic overflow, division by zero,
attempt to execute an illegal machine instruction, and reference outside a
user’s allowed memory space.
Timer: Generated by a timer within the processor. This allows the
operating system to perform certain functions on a regular basis.
I/O: Generated by an I/O controller, to signal normal completion of an
operation or to signal a variety of error conditions
Hardware Failure: Generated by a failure, such as power failure or
memory parity error.
9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 8
Interrupt Processing
An interrupt triggers a number of events, both in the processor
hardware and in software. Figure shows a typical sequence. When
an I/O device completes an I/O operation, the following sequence of
hardware events occurs:
9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 9
Interrupt
Processing
9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 10
References
1. Operating System Concept ninth Edition by Abraham Silberschatz and Galvin
2. Operating Systems, internals and Design Principles, sixth edition by William Stalling
9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 11

More Related Content

What's hot (19)

PDF
Operating System Concepts Presentation
Nitish Jadia
 
PPTX
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V Real Time Operating System (RTOS)
Arti Parab Academics
 
PPT
Rtos By Avanish Agarwal
Avanish Agarwal
 
PDF
Operating Systems
Fahad Shaikh
 
PPTX
Operating system introducton and tyes
Nancy Verma
 
PDF
1 introduction
Mohd Arif
 
PPT
Presentation1 cc
Lavanya Madam
 
PPT
Section01 overview (1)
Vimarsh Padha
 
PPT
Section01 overview
Vimarsh Padha
 
PPT
Operating system services 9
myrajendra
 
PDF
Operating System Lecture 4
Dr. Ahmed J. Obaid
 
PPTX
Ch1-Operating System Concept
Muhammad Bilal Tariq
 
PDF
Coal 10 instruction cycle and interrupts in Assembly Programming
Muhammad Taqi Hassan Bukhari
 
PPTX
Central Processing Unit (CPU) – Part 2
Ajeng Savitri
 
PDF
Os lecture 5
Dr. Ahmed J. Obaid
 
PDF
Os lecture 6
Dr. Ahmed J. Obaid
 
PPTX
Operating System Structure
Navid Daneshvaran
 
PPT
Silberschatz / OS Concepts
Alanisca Alanis
 
Operating System Concepts Presentation
Nitish Jadia
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V Real Time Operating System (RTOS)
Arti Parab Academics
 
Rtos By Avanish Agarwal
Avanish Agarwal
 
Operating Systems
Fahad Shaikh
 
Operating system introducton and tyes
Nancy Verma
 
1 introduction
Mohd Arif
 
Presentation1 cc
Lavanya Madam
 
Section01 overview (1)
Vimarsh Padha
 
Section01 overview
Vimarsh Padha
 
Operating system services 9
myrajendra
 
Operating System Lecture 4
Dr. Ahmed J. Obaid
 
Ch1-Operating System Concept
Muhammad Bilal Tariq
 
Coal 10 instruction cycle and interrupts in Assembly Programming
Muhammad Taqi Hassan Bukhari
 
Central Processing Unit (CPU) – Part 2
Ajeng Savitri
 
Os lecture 5
Dr. Ahmed J. Obaid
 
Os lecture 6
Dr. Ahmed J. Obaid
 
Operating System Structure
Navid Daneshvaran
 
Silberschatz / OS Concepts
Alanisca Alanis
 

Similar to Cpu register, instruction exucution and interrupts unit 1 by ram k paliwal (20)

PPTX
Chapter 3 part 2 Interconnections Computer organization
AdeelAsghar36
 
PDF
S6 EEE MPLC FULL NOTE.pdf subject in electrical and electronics engineering
Abinjohnson15
 
PDF
Input output concepts in operating systems
isitneededwhy
 
PPTX
OPERATING SYSTEM-UNIT 1.pptxSystem Calls
abinayaraghavan1
 
PPTX
Interrupts
Saleem Mahar
 
PPTX
OPERATING SYSTEM - UNIT 5.pptx Program threats- System threats – Securing sys...
abinayaraghavan1
 
PPTX
Processor
Hans Raj
 
PPTX
ITE7_Chp3.pptx
MuhammadYasirKhan36
 
PPTX
Programmable logic controller (PLC)
Manthan Chavda
 
PDF
20838382 microprocessor-8085-notes
Ravali Sunki
 
PPTX
OPERATING SYSTEMS OVERVIEW111111111.pptx
sivaprakash170091
 
PDF
IO_ORGANIZATION.pdf
GaganaPurshothama
 
PPTX
MICROPROCESSOR_Anurad gor systej ndjksauduiha MAITY.pptx
vapopi5316
 
PPTX
Operating system- Chapter 1.pptx to study
muhammadalam77863
 
PPTX
computer function and interconnection.pptx
PramodDoddmane
 
PPTX
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
RamaPrabha24
 
PPT
ch1.ppt
tarunudayakumar1
 
PPTX
Ch 01 os8e
Syed Faisal
 
PPTX
MPMC UNIT 2 MPMC UNIT 2 MPMC UNIT 2 MPMC UNIT 2
AnbazhaganSelvanatha
 
Chapter 3 part 2 Interconnections Computer organization
AdeelAsghar36
 
S6 EEE MPLC FULL NOTE.pdf subject in electrical and electronics engineering
Abinjohnson15
 
Input output concepts in operating systems
isitneededwhy
 
OPERATING SYSTEM-UNIT 1.pptxSystem Calls
abinayaraghavan1
 
Interrupts
Saleem Mahar
 
OPERATING SYSTEM - UNIT 5.pptx Program threats- System threats – Securing sys...
abinayaraghavan1
 
Processor
Hans Raj
 
ITE7_Chp3.pptx
MuhammadYasirKhan36
 
Programmable logic controller (PLC)
Manthan Chavda
 
20838382 microprocessor-8085-notes
Ravali Sunki
 
OPERATING SYSTEMS OVERVIEW111111111.pptx
sivaprakash170091
 
IO_ORGANIZATION.pdf
GaganaPurshothama
 
MICROPROCESSOR_Anurad gor systej ndjksauduiha MAITY.pptx
vapopi5316
 
Operating system- Chapter 1.pptx to study
muhammadalam77863
 
computer function and interconnection.pptx
PramodDoddmane
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
RamaPrabha24
 
Ch 01 os8e
Syed Faisal
 
MPMC UNIT 2 MPMC UNIT 2 MPMC UNIT 2 MPMC UNIT 2
AnbazhaganSelvanatha
 
Ad

More from Ram Paliwal (20)

PPTX
Mis classification By Ram K Paliwal
Ram Paliwal
 
PPTX
Management inofrmation system basics by ram k paliwal
Ram Paliwal
 
PPTX
Database design (entity attribute and its types) unit 2 part 4
Ram Paliwal
 
PPTX
Database design (entity, entity set and entity type) unit 2 part 3
Ram Paliwal
 
PPTX
Database design (conceptual, logical and physical design) unit 2 part 2
Ram Paliwal
 
PPTX
Database development life cycle unit 2 part 1
Ram Paliwal
 
PPTX
Memory hierarchy unit 2 by ram k paliwal
Ram Paliwal
 
PPTX
Sdlc spiral model in software engineering basics by ram k paliwal
Ram Paliwal
 
PPTX
Types of operating system unit 1 by Ram K Paliwal
Ram Paliwal
 
PPTX
Software project planning in software engineering by ram k paliwal unit 2
Ram Paliwal
 
PPTX
Software reuirement elicitation in software engineering basics by ram k paliwal
Ram Paliwal
 
PPTX
Srs (software requirement specification) in software engineering basics by ra...
Ram Paliwal
 
PPTX
Sdlc process models in software engineering basics by ram k paliwal
Ram Paliwal
 
PPT
Database models unit 1 part 2
Ram Paliwal
 
PPT
Database overview unit 4 part 1
Ram Paliwal
 
PPTX
Database development life cycle unit 2 part 1
Ram Paliwal
 
PPTX
Operating system basics function of os unit 1 by ram k paliwal part 1
Ram Paliwal
 
PPTX
Software process in software engineering basics by ram k paliwal part 2
Ram Paliwal
 
PPTX
Software and software engineering basics by ram k paliwal
Ram Paliwal
 
PPT
Do lecommerce
Ram Paliwal
 
Mis classification By Ram K Paliwal
Ram Paliwal
 
Management inofrmation system basics by ram k paliwal
Ram Paliwal
 
Database design (entity attribute and its types) unit 2 part 4
Ram Paliwal
 
Database design (entity, entity set and entity type) unit 2 part 3
Ram Paliwal
 
Database design (conceptual, logical and physical design) unit 2 part 2
Ram Paliwal
 
Database development life cycle unit 2 part 1
Ram Paliwal
 
Memory hierarchy unit 2 by ram k paliwal
Ram Paliwal
 
Sdlc spiral model in software engineering basics by ram k paliwal
Ram Paliwal
 
Types of operating system unit 1 by Ram K Paliwal
Ram Paliwal
 
Software project planning in software engineering by ram k paliwal unit 2
Ram Paliwal
 
Software reuirement elicitation in software engineering basics by ram k paliwal
Ram Paliwal
 
Srs (software requirement specification) in software engineering basics by ra...
Ram Paliwal
 
Sdlc process models in software engineering basics by ram k paliwal
Ram Paliwal
 
Database models unit 1 part 2
Ram Paliwal
 
Database overview unit 4 part 1
Ram Paliwal
 
Database development life cycle unit 2 part 1
Ram Paliwal
 
Operating system basics function of os unit 1 by ram k paliwal part 1
Ram Paliwal
 
Software process in software engineering basics by ram k paliwal part 2
Ram Paliwal
 
Software and software engineering basics by ram k paliwal
Ram Paliwal
 
Do lecommerce
Ram Paliwal
 
Ad

Recently uploaded (20)

PPTX
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
PPTX
MPMC_Module-2 xxxxxxxxxxxxxxxxxxxxx.pptx
ShivanshVaidya5
 
PDF
Book.pdf01_Intro.ppt algorithm for preperation stu used
archu26
 
PDF
Statistical Data Analysis Using SPSS Software
shrikrishna kesharwani
 
PPTX
Introduction to Neural Networks and Perceptron Learning Algorithm.pptx
Kayalvizhi A
 
PPTX
Day2 B2 Best.pptx
helenjenefa1
 
PPTX
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 
PDF
Ethics and Trustworthy AI in Healthcare – Governing Sensitive Data, Profiling...
AlqualsaDIResearchGr
 
PDF
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
PPTX
Hashing Introduction , hash functions and techniques
sailajam21
 
PDF
ARC--BUILDING-UTILITIES-2-PART-2 (1).pdf
IzzyBaniquedBusto
 
PPTX
Innowell Capability B0425 - Commercial Buildings.pptx
regobertroza
 
PPTX
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
PPTX
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
PPTX
UNIT DAA PPT cover all topics 2021 regulation
archu26
 
PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PPTX
Pharmaceuticals and fine chemicals.pptxx
jaypa242004
 
DOCX
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PDF
monopile foundation seminar topic for civil engineering students
Ahina5
 
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
MPMC_Module-2 xxxxxxxxxxxxxxxxxxxxx.pptx
ShivanshVaidya5
 
Book.pdf01_Intro.ppt algorithm for preperation stu used
archu26
 
Statistical Data Analysis Using SPSS Software
shrikrishna kesharwani
 
Introduction to Neural Networks and Perceptron Learning Algorithm.pptx
Kayalvizhi A
 
Day2 B2 Best.pptx
helenjenefa1
 
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 
Ethics and Trustworthy AI in Healthcare – Governing Sensitive Data, Profiling...
AlqualsaDIResearchGr
 
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
Hashing Introduction , hash functions and techniques
sailajam21
 
ARC--BUILDING-UTILITIES-2-PART-2 (1).pdf
IzzyBaniquedBusto
 
Innowell Capability B0425 - Commercial Buildings.pptx
regobertroza
 
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
UNIT DAA PPT cover all topics 2021 regulation
archu26
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
Pharmaceuticals and fine chemicals.pptxx
jaypa242004
 
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
Design Thinking basics for Engineers.pdf
CMR University
 
monopile foundation seminar topic for civil engineering students
Ahina5
 

Cpu register, instruction exucution and interrupts unit 1 by ram k paliwal

  • 1. Unit -1 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS IN OPERATING SYSTEM BY RAM K PALIWAL 9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 1
  • 2. CPU Register CPU registers The registers vary in number and type, depending on the computer architecture. ◦ Accumulators ◦ Index registers ◦ Stack pointers ◦ General-purpose registers ◦ condition-code information registers. When any process is running along with the program counter, this state information (CPU register information) must be saved when an interrupt occurs, to allow the process to be continued correctly afterward 9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 2
  • 3. Instruction Execution 9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 3 All computers have an instruction execution cycle. A basic instruction execution cycle can be broken down into the following steps: 1. Fetch cycle 2. Execute cycle
  • 4. Instruction Execution The fetched instruction is loaded into the instruction register (IR). The instruction contains bits that specify the action the processor is to take. The processor interprets the instruction and performs the required action. In general, these actions fall into four categories: 1. Processor-memory: Data may be transferred from processor to memory or from memory to processor. 2. Processor-I/O: Data may be transferred to or from a peripheral device by transferring between the processor and an I/O module. 3. Data processing: The processor may perform some arithmetic or logic operation on data. 4. Control: An instruction may specify that the sequence of execution be altered. 9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 4
  • 5. Interrupts Virtually all computers provide a mechanism by which other modules (I/O, memory) may interrupt the normal sequencing of the processor. Interrupts are provided primarily as a way to improve processor utilization. For example, most I/O devices are much slower than the processor. Types of Interrupts: Hardware Software 9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 5
  • 6. Interrupts Hardware Interrupts: If the signal for the processor is from external device or hardware is called hardware interrupts. Example: from keyboard we will press the key to do some action this pressing of key in keyboard will generate a signal which is given to the processor to do action, such interrupts are called hardware interrupts. Hardware interrupts can be classified into two types they are ◦ Maskable Interrupt: The hardware interrupts which can be delayed when a much highest priority interrupt has occurred to the processor. ◦ Non Maskable Interrupt: The hardware interrupts which cannot be delayed and should process by the processor immediately. 9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 6
  • 7. Interrupts Software Interrupts: Software interrupt can also divided in to two types. ◦ Normal Interrupts: the interrupts which are caused by the software instructions are called software instructions. ◦ Exception: unplanned interrupts while executing a program is called Exception. For example: while executing a program if we got a value which should be divided by zero is called a exception. 9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 7
  • 8. Interrupts Classes of Interrupt Program: Generated by some condition that occurs as a result of an instruction execution, such as arithmetic overflow, division by zero, attempt to execute an illegal machine instruction, and reference outside a user’s allowed memory space. Timer: Generated by a timer within the processor. This allows the operating system to perform certain functions on a regular basis. I/O: Generated by an I/O controller, to signal normal completion of an operation or to signal a variety of error conditions Hardware Failure: Generated by a failure, such as power failure or memory parity error. 9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 8
  • 9. Interrupt Processing An interrupt triggers a number of events, both in the processor hardware and in software. Figure shows a typical sequence. When an I/O device completes an I/O operation, the following sequence of hardware events occurs: 9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 9
  • 10. Interrupt Processing 9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 10
  • 11. References 1. Operating System Concept ninth Edition by Abraham Silberschatz and Galvin 2. Operating Systems, internals and Design Principles, sixth edition by William Stalling 9/3/2019 CPU REGISTER, INSTRUCTION EXECUTION AND INTERRUPTS- UNIT 1- BY RAM K PALIWAL 11

Editor's Notes

  • #4: The two steps are referred to as the fetch stage and the execute stage. Program execution halts only if the processor is turned off, some sort of unrecoverable error occurs, or a program instruction that halts the processor is encountered. At the beginning of each instruction cycle, the processor fetches an instruction from memory. Typically, the program counter (PC) holds the address of the next instruction to be fetched. Unless instructed otherwise, the processor always increments the PC after each instruction fetch so that it will fetch the next instruction in sequence (i.e., the instruction located at the next higher memory address). For example, consider a simplified computer in which each instruction occupies one 16-bit word of memory. Assume that the program counter is set to location 300. The processor will next fetch the instruction at location 300. On succeeding instruction cycles, it will fetch instructions from locations 301, 302, 303, and so on. This sequence may be altered, as explained subsequently.
  • #5: Control: An instruction may specify that the sequence of execution be altered. For example, the processor may fetch an instruction from location 149, which specifies that the next instruction be from location 182. The processor sets the program counter to 182. Thus, on the next fetch stage, the instruction will be fetched from location 182 rather than 150.
  • #10: 1. The device issues an interrupt signal to the processor. 2. The processor finishes execution of the current instruction before responding to the interrupt. 3. The processor tests for a pending interrupt request, determines that there is one, and sends an acknowledgment signal to the device that issued the interrupt. The acknowledgment allows the device to remove its interrupt signal. The processor next needs to prepare to transfer control to the interrupt routine. To begin, it saves information needed to resume the current program at the point of interrupt. The minimum information required is the program status word (PSW) and the location of the next instruction to be executed, which is contained in the program counter. These can be pushed onto a control stack. 5. The processor then loads the program counter with the entry location of the interrupt-handling routine that will respond to this interrupt. Depending on the computer architecture and OS design, there may be a single program, one for each type of interrupt, or one for each device and each type of interrupt. If there is more than one interrupt-handling routine, the processor must determine which one to invoke. This information may have been included in the original interrupt signal, or the processor may have to issue a request to the device that issued the interrupt to get a response that contains the needed information.
  • #11: 6. At this point, the program counter and PSW relating to the interrupted program have been saved on the control stack. However, there is other information that is considered part of the state of the executing program. In particular, the contents of the processor registers need to be saved, because these registers may be used by the interrupt handler. So all of these values, plus any other state information, need to be saved. 7. The interrupt handler may now proceed to process the interrupt.This includes an examination of status information relating to the I/O operation or other event that caused an interrupt. It may also involve sending additional commands or acknowledgments to the I/O device. 8. When interrupt processing is complete, the saved register values are retrieved from the stack and restored to the registers. 9. The final act is to restore the PSW and program counter values from the stack. As a result, the next instruction to be executed will be from the previously interrupted program.