Contains IO primitives for VGA based displays, as well as some mode setters.
Marcel Sondaar
Public Domain
vga_io.bas | Contains IO primitives for VGA based displays, as well as some mode setters. |
Functions | |
Write3C0 | Writes an index/value pair to VGA register 3C0 (Attribute Control Register) |
Write3C2 | Writes to VGA register 3C2 (Miscellaneous Output Register) |
Write3C4 | Writes an index/value pair to VGA register 3C4 (Sequencer Register) |
Write3C6 | Writes to VGA register 3C6 (DAC Mask Register) |
Write3CE | Writes an index/value pair to VGA register 3CE (Graphics Controller Register) |
Write3D4 | Writes an index/value pair to VGA register 3D4 (CRTC Controller) |
Read3C0 | Reads an value from the indexed VGA register 3C0 (Attribute Control Register) |
Read3C2 | Reads the value from VGA register 3C2 (Miscellaneous Output Register) |
Read3C4 | Reads an value from the indexed VGA register 3C4 (Sequencer Register) |
Read3C6 | Reads the value from VGA register 3C6 (DAC Mask) |
Read3CE | Reads an value from the indexed VGA register 3CE (Graphics Controller Register) |
Read3D4 | Reads an value from the indexed VGA register 3D4 (CRTC Register) |
VGAUnlockCRTC | unlocks the CRTC registers |
VGAEnableDisplay | Enables video output on the VGA |
VGASet320x200Mode | Set the VGA registers to a 320x200 Mode |
VGASet320x240Mode | Set the VGA registers to a 320x240 Mode |
VGASet400x300Mode | Set the VGA registers to a 400x300 Mode |
VGASet640x480x16Mode | Set the VGA registers to 640x480 16 colors |
VGASetTextMode | Set the VGA registers to standard text mode |
VGASetModeX | Modifies the CRTC and Sequencer to enter planar addressing mode from a linear mode |
Sub Write3C0 Cdecl Alias "Write3C0" ( ByVal index as byte, ByVal value as Unsigned byte )
Writes an index/value pair to VGA register 3C0 (Attribute Control Register)
index | the AC register to access |
value | the value to write |
Sub Write3C2 Cdecl Alias "Write3C2" ( ByVal value as Unsigned byte )
Writes to VGA register 3C2 (Miscellaneous Output Register)
value | the value to write |
Sub Write3C4 Cdecl Alias "Write3C4" ( ByVal index as byte, ByVal value as Unsigned byte )
Writes an index/value pair to VGA register 3C4 (Sequencer Register)
index | the Sequencer register to access |
value | the value to write |
Sub Write3C6 Cdecl Alias "Write3C6" ( ByVal value as Unsigned byte )
Writes to VGA register 3C6 (DAC Mask Register)
value | the value to write |
Sub Write3CE Cdecl Alias "Write3CE" ( ByVal index as byte, ByVal value as Unsigned byte )
Writes an index/value pair to VGA register 3CE (Graphics Controller Register)
index | the Graphics Register to access |
value | the value to write |
Sub Write3D4 Cdecl Alias "Write3D4"( ByVal index as byte, ByVal value as Unsigned byte )
Writes an index/value pair to VGA register 3D4 (CRTC Controller)
index | the CRTC register to access |
value | the value to write |
Function Read3C0 Cdecl Alias "Read3C0" ( ByVal index As Byte ) As Unsigned Byte
Reads an value from the indexed VGA register 3C0 (Attribute Control Register)
index | the AC register to access |
return | the value of the register |
Function Read3C2 Cdecl Alias "Read3C2" () As Unsigned Byte
Reads the value from VGA register 3C2 (Miscellaneous Output Register)
return | the value of the Miscellaneous Output Register |
Function Read3C4 Cdecl Alias "Read3C4" ( ByVal index As Byte ) As Unsigned Byte
Reads an value from the indexed VGA register 3C4 (Sequencer Register)
index | the Sequencer register to access |
return | the value of the register |
Function Read3C6 Cdecl Alias "Read3C6" As Unsigned Byte
Reads the value from VGA register 3C6 (DAC Mask)
return | the value of the DAC Mask Register |
Function Read3CE Cdecl Alias "Read3CE" ( ByVal index As Byte ) As Unsigned Byte
Reads an value from the indexed VGA register 3CE (Graphics Controller Register)
index | the GC register to access |
return | the value of the register |
Function Read3D4 Cdecl Alias "Read3D4" ( ByVal index As Byte ) As Unsigned Byte
Reads an value from the indexed VGA register 3D4 (CRTC Register)
index | the CRTC register to access |
return | the value of the register |
Sub VGAEnableDisplay Cdecl Alias "VGAEnableDisplay" ()
Enables video output on the VGA
Sub VGASet320x200Mode Cdecl Alias "VGASet320x200Mode" ()
Set the VGA registers to a 320x200 Mode
Sub VGASet320x240Mode Cdecl Alias "VGASet320x240Mode"()
Set the VGA registers to a 320x240 Mode
Sub VGASet400x300Mode Cdecl Alias "VGASet400x300Mode"()
Set the VGA registers to a 400x300 Mode
Sub VGASet640x480x16Mode Cdecl Alias "VGASet640x480x16Mode"()
Set the VGA registers to 640x480 16 colors
Writes an index/value pair to VGA register 3C0 (Attribute Control Register)
Sub Write3C0 Cdecl Alias "Write3C0" ( ByVal index as byte, ByVal value as Unsigned byte )
Writes to VGA register 3C2 (Miscellaneous Output Register)
Sub Write3C2 Cdecl Alias "Write3C2" ( ByVal value as Unsigned byte )
Writes an index/value pair to VGA register 3C4 (Sequencer Register)
Sub Write3C4 Cdecl Alias "Write3C4" ( ByVal index as byte, ByVal value as Unsigned byte )
Writes to VGA register 3C6 (DAC Mask Register)
Sub Write3C6 Cdecl Alias "Write3C6" ( ByVal value as Unsigned byte )
Writes an index/value pair to VGA register 3CE (Graphics Controller Register)
Sub Write3CE Cdecl Alias "Write3CE" ( ByVal index as byte, ByVal value as Unsigned byte )
Writes an index/value pair to VGA register 3D4 (CRTC Controller)
Sub Write3D4 Cdecl Alias "Write3D4"( ByVal index as byte, ByVal value as Unsigned byte )
Reads an value from the indexed VGA register 3C0 (Attribute Control Register)
Function Read3C0 Cdecl Alias "Read3C0" ( ByVal index As Byte ) As Unsigned Byte
Reads the value from VGA register 3C2 (Miscellaneous Output Register)
Function Read3C2 Cdecl Alias "Read3C2" () As Unsigned Byte
Reads an value from the indexed VGA register 3C4 (Sequencer Register)
Function Read3C4 Cdecl Alias "Read3C4" ( ByVal index As Byte ) As Unsigned Byte
Reads the value from VGA register 3C6 (DAC Mask)
Function Read3C6 Cdecl Alias "Read3C6" As Unsigned Byte
Reads an value from the indexed VGA register 3CE (Graphics Controller Register)
Function Read3CE Cdecl Alias "Read3CE" ( ByVal index As Byte ) As Unsigned Byte
Reads an value from the indexed VGA register 3D4 (CRTC Register)
Function Read3D4 Cdecl Alias "Read3D4" ( ByVal index As Byte ) As Unsigned Byte
unlocks the CRTC registers
Sub VGAUnlockCRTC Cdecl Alias "VGAUnlockCRTC" ()
Enables video output on the VGA
Sub VGAEnableDisplay Cdecl Alias "VGAEnableDisplay" ()
Set the VGA registers to a 320x200 Mode
Sub VGASet320x200Mode Cdecl Alias "VGASet320x200Mode" ()
Set the VGA registers to a 320x240 Mode
Sub VGASet320x240Mode Cdecl Alias "VGASet320x240Mode"()
Set the VGA registers to a 400x300 Mode
Sub VGASet400x300Mode Cdecl Alias "VGASet400x300Mode"()
Set the VGA registers to 640x480 16 colors
Sub VGASet640x480x16Mode Cdecl Alias "VGASet640x480x16Mode"()
Set the VGA registers to standard text mode
Sub VGASetTextMode Cdecl Alias "VGASetTextMode" ()
Modifies the CRTC and Sequencer to enter planar addressing mode from a linear mode
Sub VGASetModeX Cdecl Alias "VGASetModeX"()