Document (24)
Document (24)
ISR is a program that tells the processor what to do when the interrupt occurs. After
the ISR execution, control returns to the main routine where it was interrupted.
Task Performed:
In the 8086 microprocessor following tasks are performed when the microprocessor
encounters an interrupt:
1. The value of the flag register is pushed into the stack. It means that first, the
value of SP (Stack Pointer) is decremented by two then the value of the flag
register is pushed to the memory address of the stack segment.
2. The value of starting memory address of CS (Code Segment) is pushed
into the stack.
3. The value of IP (Instruction Pointer) is pushed into the stack.
4. IP is loaded from word location (Interrupt type) * 04.
5. CS is loaded from the following word location.
6. Interrupt, and Trap flags are reset to 0.
Types of Interrupts
The different types of interrupts present in the 8086 microprocessor are given by:
Uses of Interrupts