Made VGA memory bounds setting more obvious as to why it has its value.

This commit is contained in:
neviyn 2017-10-22 02:00:07 +01:00
parent 5982c72a8a
commit 47f18157b3

View File

@ -1,11 +1,13 @@
import vga import vga
type
VGAMemory = ptr array[0..1999, VGADoubleByte]
const const
vgaWidth = 80 vgaWidth = 80
vgaHeight = 25 vgaHeight = 25
type
VGAMemory = ptr array[0..(vgaWidth * vgaHeight - 1), VGADoubleByte]
const
terminalBufferBaseAddress = 0xB8000 terminalBufferBaseAddress = 0xB8000
vgaMem = cast[VGAMemory](terminalBufferBaseAddress) vgaMem = cast[VGAMemory](terminalBufferBaseAddress)