📄 _ldimage.asm
字号:
include ..\cwlib.inc
scode
;------------------------------------------------------------------------------
;
;Load an image file.
;
;Calling:
;
;LoadImageFile(filename,bitmap);
;
;On Entry:
;
;filename - pointer to name of file to load.
;bitmap - pointer to variable to store bitmap address in.
;
;On Exit:
;
;EAX - Status,
; 0 - No error.
; 1 - Bad file format.
; 2 - File access error.
; 3 - Not enough memory.
;bitmap - pointer to bitmap.
;
_LoadImageFile proc syscall filename:dword, bitmap:dword
public _LoadImageFile
pushm edx,esi
mov edx,filename
call LoadImageFile
mov edx,bitmap
mov [edx],esi
popm edx,esi
ret
_LoadImageFile endp
efile
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -