bsetpix.asm

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

ASM
40
字号
	include ..\cwlib.inc
	scode

;-------------------------------------------------------------------------
;
;Set a pixel to specified colour. Cheats by useing BitmapFillRectangle for now.
;
;On Entry:
;
;EAX	- Flags, bit significant if set.
;	0 - FillValue is RGB.
;EBX	- Fill value.
;ECX	- X co-ord.
;EDX	- Y co-ord.
;EBP	- Bitmap.
;
;On Exit:
;
;nothing.
;
;All registers preserved.
;
BitmapSetPixel	proc	near
	push	ebp
	push	1
	push	1
	push	edx
	push	ecx
	push	ebx
	push	eax
	call	BitmapFillRectangle
	add	esp,4*7
	ret
BitmapSetPixel	endp


	efile
	end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?