PS/2 Keyboard: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
Added a solution to read scancodes without interrupts, a few minor grammatical corrections. |
m Optimized getScancode() |
||
Line 257: | Line 257: | ||
char getScancode() |
char getScancode() |
||
{ |
{ |
||
while(!(inb(0x64) & 1)); |
|||
while(!(flag & 1)) { |
|||
flag = inb(0x64); |
|||
} |
|||
return inb(0x60); |
return inb(0x60); |
||
} |
} |