diff options
| author | Marin Ivanov <[email protected]> | 2024-05-02 01:07:26 +0300 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2024-05-02 01:07:26 +0300 |
| commit | 476d95c3d01d085013d2986997d0232c3a97d27b (patch) | |
| tree | 29dff4a771f1f95ae96f98684871f35442e237a7 /src/main.zig | |
| parent | b443cf5d72a3b5b11331475a29772eca63479377 (diff) | |
write in console and debugcon
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/main.zig b/src/main.zig index 5534a84..2ac40fa 100644 --- a/src/main.zig +++ b/src/main.zig @@ -32,21 +32,13 @@ export const multiboot2 align(4) linksection(".multiboot") = MultibootHeader{ .tag2 = 8, }; -var vga = @as([*]volatile u16, @ptrFromInt(0xB8000)); - export fn kmain() noreturn { - //print OK - vga[0] = 0x2f4f; - vga[1] = 0x2f4b; - console.initialize(); - console.puts("test"); + console.setColor(0x2F); + console.puts("64-bit Yadka"); // write debug data - debug.outb(0xe9, 'H'); - debug.outb(0xe9, 'i'); - debug.outb(0xe9, '!'); - debug.outb(0xe9, '\n'); + debug.write("Hi!\n"); while (true) {} } |
