![]() | 附录C HGC单显仿真CGA程序 | -335- | |||||||||||||||||||
INITCRTC: MAIN CODE |
MOV OUT INC LODSB OUT INC DEC LOOP CLD MOV MOV MOV XOR MOV REP MOV MOV OUT MOV INT ENDP ENDS END |
AL,AH DX,AL DX DX,AL AH DX INITCRTC CX,2000H AX,0B800H ES,AX DI,DI AX,0 STOSW AL,8AH DX,3B8H DX,AL AH,4CH 21H MAIN |
;输出CRTC寄存器索引 ;DX指向数据端口 ;取得一个CRTC初始化值 ;并输出 ;索引下一个CRTC寄存器 ;DX指向索引端口 ;设置全部16个CRTC寄存器 ;清除显示缓冲区 ;允许显示及APA格式 ;结束程序 |
||||||||||||||||||
Copyright © 2004-2015 Reanimator | www.cookmoon.org |