From db553d05824ae463752c8b528feac963e41d9f1c Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 6 Apr 2021 15:55:30 +0200 Subject: Add Interrupt management --- src/utils/8042.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/utils/8042.c (limited to 'src/utils/8042.c') diff --git a/src/utils/8042.c b/src/utils/8042.c new file mode 100644 index 0000000..d8a5ba0 --- /dev/null +++ b/src/utils/8042.c @@ -0,0 +1,16 @@ +#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]); +} -- cgit v1.2.3