Intel 80C188EC User Manual page 74

Hide thumbs Also See for 80C188EC:
Table of Contents

Advertisement

The CPU is now executing the interrupt service routine. The programmer must save (usually by
pushing onto the stack) all registers used in the interrupt service routine; otherwise, their contents
will be lost. To allow nesting of maskable interrupts, the programmer must set the Interrupt En-
able bit in the Processor Status Word.
When exiting an interrupt service routine, the programmer must restore (usually by popping off
the stack) the saved registers and execute an IRET instruction, which performs the following
steps.
1.
Loads the return CS and IP by popping them off the stack.
2.
Pops and restores the old Processor Status Word from the stack.
The CPU now executes from the point at which the interrupt or exception occurred.
Stack
PSW
CS
IP
SP
CS
IP
Interrupt
Vector
Table
OVERVIEW OF THE 80C186 FAMILY ARCHITECTURE
Interrupt Enable Bit
1
0 0
3
4
Figure 2-26. Interrupt Sequence
Trap Flag
2
Processor Status Word
Code Segment Register
Instruction Pointer
A1029-0A
2-41

Advertisement

Table of Contents
loading

This manual is also suitable for:

80c186ec

Table of Contents