1 / 14

Interrupts

Interrupts. Module M17.3 Sections 11.3, 14.1. Interrupts. Software Interrupts Hardware Interrupts. Software Interrupts. BIOS Calls Keyboard -- INT 16H Video I/O -- INT 10H Serial I/O -- INT 14H Printer I/O -- INT 17H Time of day -- INT 1AH Timer tick -- INT 1CH DOS Calls

Download Presentation

Interrupts

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Interrupts Module M17.3 Sections 11.3, 14.1

  2. Interrupts • Software Interrupts • Hardware Interrupts

  3. Software Interrupts • BIOS Calls • Keyboard -- INT 16H • Video I/O -- INT 10H • Serial I/O -- INT 14H • Printer I/O -- INT 17H • Time of day -- INT 1AH • Timer tick -- INT 1CH • DOS Calls • Function request -- INT 21H

  4. Interrupt Processing

  5. Interrupt Vector Table

  6. Interrupt service routines end with an IRET instruction that pops the following values off the stack.

  7. Interrupt Vector Table Offset address Type number 000 004 008 00C 010 014 IP 0 1 2 3 4 5 Division by zero Single Stepping NMI Interrupt 1-Byte INT (opcode = CC) Signed overflow (INTO) Print screen CS IP CS IP CS IP CS IP CS IP CS

  8. Time of Day Interrupt: INT 1AH

  9. Hardware Interrupts Nonmaskable Interrupt, NMI

  10. Interrupt Vector Table Offset address Type number 000 004 008 00C 010 014 IP 0 1 2 3 4 5 Division by zero Single Stepping NMI Interrupt 1-Byte INT (opcode = CC) Signed overflow (INTO) Print screen CS IP CS IP CS IP CS IP CS IP CS

  11. Interrupt Vector Table 058 IP 16 Keyboard I/O CS 05C IP 17 Printer I/O CS 060 IP 18 Cassette BASIC CS 064 IP Bootstrap 19 CS 068 1A Time of Day IP CS 06C 1B Keyboard Break IP CS Timer Tick 070 1C IP CS

  12. RESET • Set Status, IP, DS, SS, and ES to 0000H • Set CS to FFFFh • Execution begins at FFFF:0000

More Related