⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _setposf.asm

📁 开放源码的编译器open watcom 1.6.0版的源代码
💻 ASM
字号:
	include ..\cwlib.inc
	scode

;-------------------------------------------------------------------------
;
;Set the file pointer position for a file.
;
;Calling:
;
;SetFilePointer(handle,method,position);
;
;On Entry:
;
;handle	- file handle.
;method	- method to use.
;position	- position to set.
;
;Methods are:
;
;0	- Absolute offset from start.
;1	- signed offset from current position.
;2	- signed offset from end of file.
;
;On Exit:
;
;EAX	- new absolute offset from start of file.
;
_SetFilePointer proc	syscall handle:dword, method:dword, position:dword
	public _SetFilePointer
	pushm	ebx,ecx
	mov	eax,method
	mov	ebx,handle
	mov	ecx,position
	call	SetFilePointer
	mov	eax,ecx
	popm	ebx,ecx
	ret
_SetFilePointer endp


	efile
	end


⌨️ 快捷键说明

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