setpix.asm
来自「开放源码的编译器open watcom 1.6.0版的源代码」· 汇编 代码 · 共 37 行
ASM
37 行
include ..\cwlib.inc
scode
;-------------------------------------------------------------------------
;
;Set a pixel to specified colour. Cheats by useing VideoFillRectangle 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.
;
;On Exit:
;
;nothing.
;
;All registers preserved.
;
VideoSetPixel proc near
push 1
push 1
push edx
push ecx
push ebx
push eax
call VideoFillRectangle
add esp,4*6
ret
VideoSetPixel endp
efile
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?