07-chapter6分析.ppt

07-chapter6分析

Interrupts An interrupt is either a hardware call to a procedure or a software call to a procedure. Interrupts are accessed with software through the INT instruction. The procedure called by the interrupt is called a handler or an interrupt service procedure (ISP). 基本概念 1. 中断就是CPU暂停执行当前程序,转而处理随机事件,处理完毕之后,返回原断口处继续执行. 引发CPU中断的信息源,称为中断源. 系统为实现中断而采取的软硬件措施 称为中断系统. e.g.. 时钟中断, 外设中断, 故障中断… 2.中断系统的基本功能: 对于硬中断的请求, 能屏蔽和开放; 能根据优先级,进行排队; 允许按规则嵌套; 能自动转入中断处理,结束后自动返回. 中断分类 按中断源分 内部中断 CPU中断 除法错 (0型) 单步中断 (1型) 断点中断 (3

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档