bootloader/fun.zig

9 lines
252 B
Zig
Raw Normal View History

2025-01-11 18:54:50 +00:00
export fn kmain() callconv(.C) void {
const color: c_short = @intCast(0x0F00);
const hello: [*:0]const u8 = "Hello zig world!";
var vga: [*]c_short = @ptrFromInt(0xb8000);
for (0..16) |i| {
vga[i+80] = color | hello[i];
}
}