关闭

keyboard buffer

标签: keyboardbufferassemblycharactertimerservice
2232人阅读 评论(0) 收藏 举报
分类:

// also as note for interrupt

When a key is either pressed or released, an interrupt is generated. On an ISA machine this interrupt is allotted, IRQ#1, which in turn is reported by the interrupt controller as interrupt number 9:

IRQ Allocation Interrupt Number
IRQ0 System Timer 08H
IRQ1 Keyboard 09H


The DOS interrupt service routine 9 interrogates the keyboard at I/O port 64H and deposits characters it receives from there in a tiny buffer located at 41EH. The characters come in from the keyboard as scan codes. The ISR converts each scan code to an ASCII character and stores both a scan code and an ASCII code in the buffer. 


Reference:

Bob Neveln. Linux Assembly Programming Language. 2000

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:183112次
    • 积分:2116
    • 等级:
    • 排名:第17929名
    • 原创:33篇
    • 转载:17篇
    • 译文:9篇
    • 评论:30条
    最新评论