Linux-0.11 kernel keyborad. s program

Source: Internet
Author: User

This assembler is a hard-to-understand program in the kernel Assembly I have seen. I am lucky to find an article on the Internet to analyze this program. The two examples can be used to deepen the understanding of the program.

 

Note: The file suffix is. s instead. s, using this suffix can make as use of the GNU Compiler's Preprocessing Program CPP (defined in each makefile in the linux-0.11), so that in the assembler can use a lot of pseudo commands in C language, for example, # include, # If.

 

The main function of this program is to call the corresponding scanning code processing subroutine that has been compiled into a jump table (key_table) based on the key scan code that causes keyboard interruption, put the payment corresponding to the scan code into the character Queue (read_q.

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.