toaruos/boot/kbd.c
2021-06-14 11:11:37 +09:00

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;
}