

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















Interrupt Handling
Flow chart of Interrupt Handling Complete Current Instruction Internal Interrupt NMI INTR TF Fetch Next Instruction IF Read Type Code # push Flags Set TEMP=TF IF= TF= push CS and IP call ISR NMI TF=TEMP pop IP and CS popf Resume Interrupted Procedure YES YES YES YES NO NO NO NO 0 1 1 0 acknowledge interrupt
8086 External Interrupt Connections NMI - Non-Maskable Interrupt INTR - Interrupt Request Interrupt Logic int into^ Divide Error Single Step NMI Requesting Device 8086 CPU Intel 8259A PIC NMI INTR Software Traps Programmable Interrupt Controller (part of chipset)
IVT Format Offset Offset Offset Segment Segment Segment Interrupt 0 Interrupt 1 Interrupt 255 0000: 0000: 0000: 0000: 0000: 0000: 0000: 0000: 0000:03fc 0000:03fd 0000:03fe 0000:03ff IP LSB IP MSB CS LSB CS MSB Given a Vector, where is the ISR address stored in memory? Offset Type 4 Example: int 36h Offset = (544) = 216 = 00d8h
Interrupt Vector Assignments Type Function Comment 0 Divide Error^ Processor - zero or overflow 1 Single Step (DEBUG)^ Processor - TF= 2 Non-maskable Interrupt Pin^ Processor - NMI Signal 3 Breakpoint^ Processor - Similar to Sing Step 4 Arithmetic Overflow^ Processor - into 5 Print Screen Key^ BIOS - Key Depressed 6 Invalid Opcode^ Processor - Invalid Opcode 7 Coprocessor Not Present^ Processor - no FPU 8 Time Signal^ BIOS - From RT Chip (AT - IRQ0) 9 Keyboard Service^ BIOS - Gen Service (AT - IRQ1) A - F Originally Bus OPS(IBM PC)^ BIOS - (AT - IRQ2-7)
Interrupt Vector Assignments Type Function Comment 10 Video Service Request BIOS - Accesses Video Driver 11 Equipment Check BIOS - Diagnostic 12 Memory Size BIOS - DOS Memory 13 Disk Service Request BIOS - Accesses Disk Driver 14 Serial Port Service Request BIOS - Accesses Serial Port Drvr 15 Miscellaneous BIOS - Cassette, etc. 16 Keyboard Service Request BIOS - Accesses KB Driver 17 Parallel Port LPT Service BIOS - Printer Driver 18 ROM BASIC BIOS - BASIC Interpreter in ROM
Breakpoint Interrupt -Type 3