From 2420e3f52b62580af9cdd661fb441733e437daf9 Mon Sep 17 00:00:00 2001 From: czjstmax Date: Mon, 23 Feb 2026 23:18:48 +0100 Subject: lots of changes. restructured repository. switched to limine. Signed-off-by: czjstmax --- src/kernel/io.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/kernel/io.c (limited to 'src/kernel/io.c') diff --git a/src/kernel/io.c b/src/kernel/io.c new file mode 100644 index 0000000..10fcac1 --- /dev/null +++ b/src/kernel/io.c @@ -0,0 +1,15 @@ +#include "api/io.h" + +/* + * Minimal API for kernel I/O basics + */ + +volatile uint16_t* VGA = (volatile uint16_t*)0xB8000; +uint16_t cursor = 0; + +void RealPrint(const char* str) { + while(*str) { + VGA[cursor++] = (uint8_t)(*str) | 0x0700; // white on black + str++; + } +} -- cgit v1.3.1