1 / 21

INTERRUPT TYPES SHOWN WITH DECREASING PRIORITY ORDER • Reset • Internal interrupts and exceptions

INTERRUPT TYPES SHOWN WITH DECREASING PRIORITY ORDER • Reset • Internal interrupts and exceptions • Software interrupt • Nonmaskable interrupt • Hardware interrupt

lavina
Télécharger la présentation

INTERRUPT TYPES SHOWN WITH DECREASING PRIORITY ORDER • Reset • Internal interrupts and exceptions

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. 2014年10月21日1

  2. 2014年10月21日2

  3. 2014年10月21日3

  4. 2014年10月21日4

  5. 2014年10月21日5

  6. 2014年10月21日6

  7. 2014年10月21日7

  8. INTERRUPT TYPES SHOWN WITH DECREASING PRIORITY ORDER • Reset • Internal interrupts and exceptions • Software interrupt • Nonmaskable interrupt • Hardware interrupt All the interrupts are serviced on priority basis. The higher priority interrupt is served first and an active lower priority interrupt service is interrupted by a higher priority one. Lower priority interrupts will have to wait until their turns come. The section of program to which the control is passed called Interruptserviceroutine (e.g. printer driver) 2014年10月21日8

  9. 2014年10月21日9

  10. Example • At what address should vector 50, CS50, and IP50 be stored in memory? • Each vector requires four bytes of memory • Address = 50 x 4 = 200 • Converting to binary – 200 = 1100 1000b – Address = C8h • IP50 is stored in 00C8h • CS50 is stored in 00CAh 2014年10月21日10

  11. Interrupt instructions • Interrupt enable flag (IF) causes external interrupts to be enabled. • INT n initiates a vectored call of a subroutine. • INTO instruction should be used after each arithmethic instruction where there is a possibility of an overflow. • HLT waits for an interrupt to occur. • WAIT waits for TEST input to go high. 2014年10月21日11

  12. 2014年10月21日12

  13. 2014年10月21日13

  14. 2014年10月21日14

  15. 2014年10月21日15

  16. 2014年10月21日16

  17. 2014年10月21日17

  18. Resident Programs • Usually non-resident program is a file, loaded from disk by DOS. Termination of such program is the passing control back to DOS. DOS frees all memory, allocated for and by this program, and stays idle to execute next program. • Resident program passes control to DOS at the end of its execution, but leaves itself in memory whole or partially. • Such way of program termination was called TSR - Terminate-and-Stay-Resident. So resident programs often called by this abbreviations - TSR. • TSR stays in memory to have some control over the processes. Usually, TSRs takes INTerrupt vectors to its code, so, when interrupt occurs, vector directs execution to TSR code. • For example, TSR can watch keypresses to steal password, INT 13h sectors operations to substitute info, INT 21h to watch and dispatch file operations and so on. 2014年10月21日18

  19. 2014年10月21日19

  20. 2014年10月21日20

  21. 2014年10月21日21

More Related