setdacs.asm

来自「开放源码的编译器open watcom 1.6.0版的源代码」· 汇编 代码 · 共 39 行

ASM
39
字号
	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 + =
减小字号Ctrl + -
显示快捷键?