_mgetpos.asm
来自「开放源码的编译器open watcom 1.6.0版的源代码」· 汇编 代码 · 共 38 行
ASM
38 行
include ..\cwlib.inc
scode
;-------------------------------------------------------------------------
;
;Get the current position & button state for the mouse.
;
;Calling:
;
;MouseGet(mdet);
;
;On Entry:
;
;mdet - pointer to 3 int's to fill in.
;
;On Exit:
;
;nothing.
;
;ALL registers preserved.
;
_MouseGet proc syscall mdet:dword
public _MouseGet
pushm ebx,ecx,edx,esi
call MouseGet
mov esi,mdet
mov [esi+0],ebx
mov [esi+4],ecx
mov [esi+8],edx
popm ebx,ecx,edx,esi
ret
_MouseGet endp
efile
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?