make keyboard actually type things

This commit is contained in:
2025-03-21 23:10:03 +03:00
parent a8ff36be52
commit bb87905970
4 changed files with 135 additions and 7 deletions
+1 -6
View File
@@ -4,6 +4,7 @@
#include "../include/screen.h"
#include "../include/pic.h"
#include "../include/pit.h"
#include "../include/keyboard.h"
typedef size_t uword_t;
struct interrupt_frame
@@ -75,12 +76,6 @@ __attribute__((interrupt)) void isr_timer(struct interrupt_frame *frame)
pic_end_int(0x0);
}
void handle_keyboard()
{
uint8_t scancode = inb(0x60);
printf("%X ", scancode);
}
__attribute__((interrupt)) void isr_custom(struct interrupt_frame *frame)
{
//terminal_writestring("YOOOOO!!!!!! I LOVE KATYA!!!!");