bringelle/src/utils/8042.c

17 lines
246 B
C
Raw Normal View History

2021-04-06 15:55:30 +02:00
#include "8042.h"
#include "print.h"
#include "asm.h"
DEFINE_AZERTY;
void _8042_keypress(){
u8 data;
do {
inb(0x64,data);
}
while((data&0x01) == 0);
inb(0x60,data);
if(data<0x80)
putchar(AZERTY[data]);
}