chore: init project
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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");
|
||||
}
|
||||
Reference in New Issue
Block a user