📄 _strlnpx.asm
字号:
include ..\cwlib.inc
scode
;------------------------------------------------------------------------------
;
;Work out the pixel length of a string.
;
;Calling:
;
;StringLenPixels(string,font);
;
;On Entry:
;
;string - String to scan.
;font - Font to use.
;
;On Exit:
;
;EAX - Length in pixels.
;
;ALL other registers preserved.
;
_StringLenPixels proc syscall string:dword, font:dword
public _StringLenPixels
pushm esi,edi
mov esi,string
mov edi,font
call StringLenPixels
popm esi,edi
ret
_StringLenPixels endp
efile
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -