VGA register list

Source: Internet
Author: User


VGA register list

VGA Register address table
Register name Monochrome Display Mode Color Display Mode
Mixed output register 3c2h 3c2h (VGA read port 3cch)
Pending control register 3bah 3dah (VGA read port 3cah)
Input Status Register 3c2h 3c2h
Input Status Register 1 3bah 3dah
VGA permitted registers 3c3h 3c3h
Sequencer index register 3c4h 3c4h
Sequencer data register 3c5h 3c5h
CRT control index register 3b4h 3d4h
CRT control data register 3b5h 3d5h
Graph control index register 3ceh 3ceh
Graphical control data register 3cfh 3cfh
Property Controller 3c0h 3c0h
DAC interface register 3c7h-3c9h 3c6h-3c9h
 
External register list
Register name Write Port
(Rack/VGA/TVGA)
Read Port
(Bytes)
Read Port
VGA/TVGA
Mixed output register 3c2h ---- 3cch
Feature control register 3bah ---- 3cah
Input Status Register 0 ---- 3c2h 3c2h
Input Status Register 1 ---- 3baii or 3dah 3baii or 3dah
VGA permitted registers Valid only for VGA/TVGA Read/write ports 3c3h
CRT controller register list
Register name Index Number
(HEX)
Write Port
(Rack/VGA/TVGA)
Read Port
(Bytes)
Read Port
(VGA/TVGA)
Address Register -- 3d5h/3b5h   3d4h/3b5h
Total horizontal scan time 00 h 3d5h/3b5h   3d5h/3b5h
Horizontal display ends 01 H 3d5h/3b5h   3d5h/3b5h
Start of horizontal hiding 02 h 3d5h/3b5h   3d5h/3b5h
End of horizontal blanking 03 h 3d5h/3b5h   3d5h/3b5h
Start horizontal scanning 04 H 3d5h/3b5h   3d5h/3b5h
Horizontal sweep ends 05 h 3d5h/3b5h   3d5h/3b5h
Total vertical scan time 06 h 3d5h/3b5h   3d5h/3b5h
Overflow 07 h     3d5h/3b5h
Row scan preset 08 h 3d5h/3b5h   3d5h/3b5h
Maximum number of scanned rows 09 h 3d5h/3b5h   3d5h/3b5h
Cursor start 0ah 3d5h/3b5h   3d5h/3b5h
Cursor ends 0bh 3d5h/3b5h   3d5h/3b5h
Starting address of the video memory (high) 0ch 3d5h/3b5h 3d5h/3b5h 3d5h/3b5h
Memory start address (low) 0dh 3d5h/3b5h 3d5h/3b5h 3d5h/3b5h
Cursor Position (high) 0eh 3d5h/3b5h 3d5h/3b5h 3d5h/3b5h
Cursor Position (low position) 0fh 3d5h/3b5h 3d5h/3b5h 3d5h/3b5h
Vertical sweep start 10 h 3d5h/3b5h   3d5h/3b5h
Vertical sweep ends 11 h 3d5h/3b5h   3d5h/3b5h
Optical pen address (high level) 10 h Read-Only 3d5h/3b5h 3d5h/3b5h
Optical pen address (low position) 11 h Read-Only 3d5h/3b5h 3d5h/3b5h
Vertical display ends 12 h 3d5h/3b5h   3d5h/3b5h
Offset/logical screen width 13 H 3d5h/3b5h   3d5h/3b5h
Underline position 14 h 3d5h/3b5h   3d5h/3b5h
Vertical invisibility start 15 h 3d5h/3b5h   3d5h/3b5h
End of vertical blanking 16 h 3d5h/3b5h   3d5h/3b5h
Mode Control 17 h 3d5h/3b5h   3d5h/3b5h
Row comparison 18 h 3d5h/3b5h   3d5h/3b5h
Graphical controller register list
Register name Index Number
(HEX)
Write Port
(Rack/VGA/TVGA)
Read Port
(VGA/TVGA)
Image Position 1   3cch (latency only)  
Image Position 2   3cah (latency only)  
Address   3ceh  
Set/Reset 00 h 3cfh 3cfh
Set/Reset allow 01 H 3cfh 3cfh
Color comparison 02 h 3cfh 3cfh
Shift/Function 03 h 3cfh 3cfh
Bit Plane read Selection 04 H 3cfh 3cfh
Mode 05 h 3cfh 3cfh
Hybrid 06 h 3cfh 3cfh
Ignore color 07 h 3cfh 3cfh
Bit shielding 08 h 3cfh 3cfh

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.