implemented basic keyboard input getting

This commit is contained in:
2025-03-14 18:32:01 +03:00
parent d5b504e815
commit ab775bd958
6 changed files with 72 additions and 15 deletions
+14
View File
@@ -0,0 +1,14 @@
#include "../include/types.h"
#include "../include/utils.h"
uint8 inportb(uint16 _port)
{
uint8 rv;
__asm__ __volatile__ ("inb %1, %0" : "=a" (rv) : "dN" (_port));
return rv;
}
void outportb(uint16 _port, uint8 _data)
{
__asm__ __volatile__ ("outb %1, %0" : : "dN" (_port), "a" (_data));
}