Files
towos/kernel/kmain.cpp
T
2026-10-02 06:09:40 +02:00

17 lines
395 B
C++

using u8 = unsigned char;
using u16 = unsigned short;
using u32 = unsigned int;
using u64 = unsigned long long;
static volatile u16* const s_vga = reinterpret_cast<volatile u16*>(0xB8000);
extern "C" void kmain() {
const char* msg = "Zdravstvuyte, tovorisch!";
for (int i = 0; msg[i] != '\0'; i++)
s_vga[i] = 0x0700 | msg[i];
for (;;)
__asm__ volatile("hlt");
}