-334- | PC机汇编语言实战精解 | ![]() |
|||||||||||||||||||
附录C HGC单显仿真CGA程序 | |||||||||||||||||||||
DATA CRTC_ARG DATA CODE MAIN |
SEGMENT ASSUME DB DB ENDP SEGMENT ASSUME PROC MOV MOV MOV MOV MOV MOV AND OR MOV MOV INT MOV MOV OUT MOV MOV OUT MOV MOV MOV XOR |
DS:DATA 38H,28H,2DH,0AH,7FH,06H,64H,70H 02H,01H,06H,07H,00H,00H,00H,00H CS:CODE FAR AX,DATA DS,AX AX,40H ES,AX BX,10H AX,WORD PTR ES:[BX] AX,0CFH AX,20H WORD PTR ES:[BX],AX AX,0004H 10H AL,3 DX,3BFH DX,AL AL,2 DX,3B8H DX,AL DX,3B4H SI,OFFSET CRTC_ARG CX,16 AH,AH |
;初始化DS寄存器 ;ES寄存器指向BIOS数据区 ;BX指向显示卡标志字 ;取得显示卡标志字 ;设成CGA标志 ;设置CGA显示模式4 ;允许第二显示页 ;允许图形模式 ;DX指向HGC卡CRTC索引寄存器 ;SI指向CRTC初始化数据表 ;设置16个CRTC寄存器 ;索引值清0 |
||||||||||||||||||
Copyright © 2004-2015 Reanimator | www.cookmoon.org |