diff --git a/kernel/arch/i386/tty.nim b/kernel/arch/i386/tty.nim index b9e1e79..bb1ab1e 100644 --- a/kernel/arch/i386/tty.nim +++ b/kernel/arch/i386/tty.nim @@ -1,11 +1,13 @@ import vga -type - VGAMemory = ptr array[0..1999, VGADoubleByte] - const vgaWidth = 80 vgaHeight = 25 + +type + VGAMemory = ptr array[0..(vgaWidth * vgaHeight - 1), VGADoubleByte] + +const terminalBufferBaseAddress = 0xB8000 vgaMem = cast[VGAMemory](terminalBufferBaseAddress)