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
|
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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user