toaruos/boot/kbd.c

12 lines
173 B
C
Raw Normal View History

2021-06-14 05:11:37 +03:00
#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;
}