📄 setdacs.asm
字号:
include ..\cwlib.inc
scode
;-------------------------------------------------------------------------
;
;Set the value's in VGA colour DAC's.
;
;On Entry:
;
;EBX - Starting DAC number.
;ECX - Number of DAC's to set.
;ESI - Pallet information
;
;On Exit:
;
;nothing.
;
;ALL registers preserved.
;
SetDACs proc near
pushm eax,ecx,edx,esi
mov edx,03c8h
mov al,bl
out dx,al
inc edx
mov eax,ecx
shl ecx,1
add ecx,eax
cld
rep outsb
popm eax,ecx,edx,esi
ret
SetDACs endp
efile
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -