📄 vga.htm
字号:
int 10 - video - alternate function select (vga, mcga) - video addressing<br>
ah = 12h<br>
bl = 32h<br>
al = 00h enable video addressing<br>
01h disable video addressing<br>
return: al = 12h if function supported<br>
----------1012--bl33-------------------------<br>
int 10 - video - alternate function select (vga, mcga) - gray-scale summing<br>
ah = 12h<br>
bl = 33h<br>
al = 00h enable gray scale summing<br>
01h disable gray scale summing<br>
return: al = 12h if function supported<br>
seealso: ax=101bh,ax=bf06h<br>
----------1012--bl34-------------------------<br>
int 10 - video - alternate function select (vga) - cursor emulation<br>
ah = 12h<br>
bl = 34h<br>
al = 00h enable alphanumeric cursor emulation<br>
01h disable alphanumeric cursor emulation<br>
return: al = 12h if function supported<br>
----------1012--bl35-------------------------<br>
int 10 - video - alternate function select (ps) - display-switch interface<br>
ah = 12h<br>
bl = 35h<br>
al = 00h initial adapter video off<br>
01h initial planar video on<br>
02h switch active video off<br>
03h switch inactive video on<br>
80h *undocumented* set system board video active flag<br>
es:dx -> buffer (128 byte save area if al = 0, 2 or 3)<br>
return: al = 12h if function supported<br>
----------1012--bl36-------------------------<br>
int 10 - video - alternate function select (ps, vga) - video refresh control<br>
ah = 12h<br>
bl = 36h<br>
al = 00h enable refresh<br>
01h disable refresh<br>
return: al = 12h if function supported<br>
----------1013-------------------------------<br>
int 10 - video - write string (at and later,ega)<br>
ah = 13h<br>
al = write mode<br>
bit 0: update cursor after writing<br>
1: string contains alternating characters and attributes<br>
bh = page number<br>
bl = attribute if string contains only characters<br>
cx = number of characters in string<br>
dh,dl = row,column at which to start writing<br>
es:bp -> string to write<br>
notes: recognizes cr, lf, bs, and bell<br>
also available pc or xt with ega or higher<br>
hp 95lx only supports write mode 00h<br>
bug: on the ibm vga adapter, any scrolling which may occur is performed on<br>
the active page rather than the requested page<br>
seealso: ah=09h,ah=0ah<br>
----------101a-------------------------------<br>
int 10 - video - display combination (ps,vga/mcga)<br>
ah = 1ah<br>
al = 00h read display combination code<br>
return: bl = active display code (see below)<br>
bh = alternate display code<br>
01h set display combination code<br>
bl = active display code (see below)<br>
bh = alternate display code<br>
return: al = 1ah if function was supported<br>
<br>
values for display combination code:<br>
00h no display<br>
01h monochrome adapter w/ monochrome display<br>
02h cga w/ color display<br>
03h reserved<br>
04h ega w/ color display<br>
05h ega w/ monochrome display<br>
06h pga w/ color display<br>
07h vga w/ monochrome analog display<br>
08h vga w/ color analog display<br>
09h reserved<br>
0ah mcga w/ digital color display<br>
0bh mcga w/ monochrome analog display<br>
0ch mcga w/ color analog display<br>
ffh unknown display type<br>
----------101b-------------------------------<br>
int 10 - video - functionality/state information (ps,vga/mcga)<br>
ah = 1bh<br>
bx = implementation type<br>
0000h return functionality/state information<br>
es:di -> 64 byte buffer for state information (see below)<br>
return: al = 1bh if function supported<br>
es:di buffer filled with state information<br>
seealso: ah=15h<br>
<br>
format of state information:<br>
offset size description<br>
00h dword address of static functionality table (see below)<br>
04h byte video mode in effect<br>
05h word number of columns<br>
07h word length of regen buffer in bytes<br>
09h word starting address of regen buffer<br>
0bh word cursor position for page 0<br>
0dh word cursor position for page 1<br>
0fh word cursor position for page 2<br>
11h word cursor position for page 3<br>
13h word cursor position for page 4<br>
15h word cursor position for page 5<br>
17h word cursor position for page 6<br>
19h word cursor position for page 7<br>
1bh word cursor type<br>
1dh byte active display page<br>
1eh word crtc port address<br>
20h byte current setting of register (3?8)<br>
21h byte current setting of register (3?9)<br>
22h byte number of rows<br>
23h word bytes/character<br>
25h byte display combination code of active display<br>
26h byte dcc of alternate display<br>
27h word number of colors supported in current mode<br>
29h byte number of pages supported in current mode<br>
2ah byte number of scan lines active<br>
(0,1,2,3) = (200,350,400,480)<br>
2bh byte primary character block<br>
2ch byte secondary character block<br>
2dh byte miscellaneous flags<br>
bit 0 all modes on all displays on<br>
1 gray summing on<br>
2 monochrome display attached<br>
3 default palette loading disabled<br>
4 cursor emulation enabled<br>
5 0 = intensity; 1 = blinking<br>
6 ps/2 p70 plasma display (without 9-dot wide font) active<br>
7 reserved<br>
2eh 3 bytes reserved (00h)<br>
31h byte video memory available<br>
00h = 64k, 01h = 128k, 02h = 192k, 03h = 256k<br>
32h byte save pointer state flags<br>
bit 0 512 character set active<br>
1 dynamic save area present<br>
2 alpha font override active<br>
3 graphics font override active<br>
4 palette override active<br>
5 dcc override active<br>
6 reserved<br>
7 reserved<br>
33h 13 bytes reserved (00h)<br>
<br>
format of static functionality table:<br>
offset size description<br>
00h byte modes supported #1<br>
bit 0 to bit 7 = 1 modes 0,1,2,3,4,5,6 supported<br>
01h byte modes supported #2<br>
bit 0 to bit 7 = 1 modes 8,9,0ah,0bh,0ch,0dh,0eh,0fh supported<br>
02h byte modes supported #3<br>
bit 0 to bit 3 = 1 modes 10h,11h,12h,13h supported<br>
bit 4 to bit 7 reserved<br>
03h 4 bytes reserved<br>
07h byte scan lines supported<br>
bit 0 to bit 2 = 1 if scan lines 200,350,400 supported<br>
08h byte total number of character blocks available in text modes<br>
09h byte maximum number of active character blocks in text modes<br>
0ah byte miscellaneous function flags #1<br>
bit 0 all modes on all displays function supported<br>
1 gray summing function supported<br>
2 character font loading function supported<br>
3 default palette loading enable/disable supported<br>
4 cursor emulation function supported<br>
5 ega palette present<br>
6 color palette present<br>
7 color paging function supported<br>
0bh byte miscellaneous function flags #2<br>
bit 0 light pen supported<br>
1 save/restore state function 1ch supported<br>
2 intensity blinking function supported<br>
3 display combination code supported<br>
4-7 reserved<br>
0ch word reserved<br>
0eh byte save pointer function flags<br>
bit 0 512 character set supported<br>
1 dynamic save area supported<br>
2 alpha font override supported<br>
3 graphics font override supported<br>
4 palette override supported<br>
5 dcc extension supported<br>
6 reserved<br>
7 reserved<br>
0fh byte reserved<br>
----------101c-------------------------------<br>
int 10 - video - save/restore video state (ps50+,vga)<br>
ah = 1ch<br>
al = 00h return state buffer size<br>
return: bx = number of 64-byte blocks needed<br>
01h save video state<br>
es:bx -> buffer<br>
02h restore video state<br>
es:bx -> buffer containing previously saved state<br>
cx = requested states<br>
bit 0 video hardware<br>
1 bios data areas<br>
2 color registers and dac state<br>
3-15 reserved<br>
return: al = 1ch if function supported<br>
</td>
</tr>
</table>
</center></div>
<p align="center"><a href="../index.htm">返回</a></p>
</body>
</html>
<center>
<script type="text/javascript">
var arrBaiduCproConfig=new Array();
arrBaiduCproConfig['uid'] = 43125;
arrBaiduCproConfig['n'] = 'williamlongcpr';
arrBaiduCproConfig['tm'] = 20;
arrBaiduCproConfig['cm'] = 76;
arrBaiduCproConfig['um'] = 26;
arrBaiduCproConfig['rad'] = 1;
arrBaiduCproConfig['w'] = 728;
arrBaiduCproConfig['h'] = 90;
arrBaiduCproConfig['bd'] = '#24581B';
arrBaiduCproConfig['bg'] = '#E1FDE8';
arrBaiduCproConfig['tt'] = '#0000CC';
arrBaiduCproConfig['ct'] = '#006600';
arrBaiduCproConfig['url'] = '#666666';
arrBaiduCproConfig['bdl'] = '#ffffff';
arrBaiduCproConfig['wn'] = 4;
arrBaiduCproConfig['hn'] = 1;
arrBaiduCproConfig['ta'] = 'right';
arrBaiduCproConfig['tl'] = 'bottom';
arrBaiduCproConfig['bu'] = 0;
</script>
<script type="text/javascript"
src="http://cpro.baidu.com/cpro/ui/ui.js">
</script>
<script type="text/javascript">
<!--
document.write(baiduCproIFrame());
-->
</script>
</center>
<br><br><br>
<div align="center"><center>
<table cellspacing="0" cellpadding="1" border="0" width="770" style="font-size: 9pt;" >
<tr><td width="770" bgcolor="#000000" height="1"></td></tr>
<tr><td width="770" height="5"></td></tr>
<tr>
<td align="center" width="770">
<a href="/" target="_top">月光软件</a>┊<a href="/download/" target="_top">程序下载</a>┊<a href="/doc/" target="_top">编程文档</a>┊<a href="/book/" target="_top">电脑教程</a>┊<a href="/web/" target="_top">网站设计</a>┊<a href="/site/" target="_top">网址导航</a>┊<a href="/art/" target="_top">网络文学</a>┊<a href="/game/" target="_top">游戏天地</a>┊<a href="/joke/" target="_top">幽默笑话</a>┊<a href="/life/" target="_top">生活休闲</a>┊<a href="/picture/" target="_top">美女图片</a>┊<a href="/guestbook/" target="_top">意见反馈</a><br>
<a href="/program/doc/docelite1105.htm">电脑技术</a>┊<a href="/program/doc/docelite405353.htm">编程开发</a>┊<a href="/program/doc/docelite25188.htm">网络专区</a>┊<a href="/program/doc/docelite10811.htm">谈天说地</a>┊<a href="/program/doc/docelite113108.htm">情感世界</a>┊<a href="/program/doc/docelite872697.htm">游戏元素</a>┊<a href="/program/doc/docelite50820.htm">分类游戏</a>┊<a href="/program/doc/docelite166458.htm">热门游戏</a>┊<a href="/program/doc/docelite42994.htm">体育运动</a>┊<a href="/program/doc/docelite872698.htm">手机专区</a>┊<a href="/program/doc/docelite28075.htm">业余爱好</a>┊<a href="/program/doc/docelite34403.htm">影视沙龙</a>
<br>
<a href="/program/doc/docelite872701.htm">音乐天地</a>┊<a href="/program/doc/docelite872702.htm">数码广场</a>┊<a href="/program/doc/docelite121902.htm">教育园地</a>┊<a href="/program/doc/docelite872703.htm">科学大观</a>┊<a href="/program/doc/docelite991826.htm">古今纵横</a>┊<a href="/program/doc/docelite49868.htm">谈股论金</a>┊<a href="/program/doc/docelite55064.htm">人文艺术</a>┊<a href="/program/doc/docelite165391.htm">医学保健</a>┊<a href="/program/doc/docelite115338.htm">动漫图酷</a>┊<a href="/program/doc/docelite872704.htm">二手专区</a>┊<a href="/program/doc/docelite112364.htm">地方风情</a>┊<a href="/program/doc/docelite165368.htm">各行各业</a>
<br><br>
<a href="http://www.moon-soft.com/">月光软件站</a>·<a href="/sitemap.htm" target="_blank">版权所有</a>
</td></tr>
</table>
</center></div>
<!-- */ //-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -