gdt idt stuff

This commit is contained in:
2026-06-12 23:03:00 -04:00
parent 5e823e570b
commit 00fb70c25b
7 changed files with 67 additions and 19 deletions

View File

@@ -57,6 +57,12 @@ void vga_initialize()
void vga_putchar(char c)
{
if (c == '\n') {
terminal_row++;
terminal_column = 0;
return;
}
const size_t index = terminal_row * VGA_WIDTH + terminal_column;
terminal_buffer[index] = vga_entry(c, terminal_color);
if (++terminal_column == VGA_WIDTH) {