From 9fbd39dcbc8da371346370210f4be80e48f05aa9 Mon Sep 17 00:00:00 2001 From: czjstmax Date: Sun, 22 Feb 2026 19:19:05 +0100 Subject: `io.h` instead of `std.h` --- src/krn/api/io.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/krn/api/io.h diff --git a/src/krn/api/io.h b/src/krn/api/io.h new file mode 100644 index 0000000..bdd20de --- /dev/null +++ b/src/krn/api/io.h @@ -0,0 +1,18 @@ +#define MÜLL_STD_H + +/* + * Minimal 'standard library' for I/O basics + */ + +// includes +#include + +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++; + } +} \ No newline at end of file -- cgit v1.3.1