Made VGA memory bounds setting more obvious as to why it has its value.
This commit is contained in:
parent
5982c72a8a
commit
47f18157b3
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user