Scan the keyboard to obtain scan codes
问题 So I'm learning how to make an OS. The problem is that every website says to scan the keyboard to obtain the scancodes in order to detect input. How do I 'scan' the keyboard? I know this question seems very ridiculous, but I really don't know how to do that, and I need help. I also have to mention that I googled it a lot. 回答1: Example for polling the keyboard port without using an ISR (x86-CPU): cli mov al, 2 ; dissable IRQ 1 out 21h, al sti ;---------------------------------------------