12 lines
173 B
C
12 lines
173 B
C
|
#include "kbd.h"
|
||
|
#include "util.h"
|
||
|
|
||
|
int read_scancode(void) {
|
||
|
while (!(inportb(0x64) & 1));
|
||
|
int out;
|
||
|
while (inportb(0x64) & 1) {
|
||
|
out = inportb(0x60);
|
||
|
}
|
||
|
return out;
|
||
|
}
|