setposf.asm
来自「开放源码的编译器open watcom 1.6.0版的源代码」· 汇编 代码 · 共 41 行
ASM
41 行
include ..\cwlib.inc
scode
;-------------------------------------------------------------------------
;
;Set the file pointer position for a file.
;
;On Entry:
;
;AL - method.
;EBX - handle.
;ECX - position.
;
;Methods are:
;
;0 - Absolute offset from start.
;1 - signed offset from current position.
;2 - signed offset from end of file.
;
;On Exit:
;
;ECX - absolute offset from start of file.
;
SetFilePointer proc near
pushm eax,edx
mov dx,cx
shr ecx,16
mov ah,42h ;set pointer function.
int 21h
mov cx,dx
shl ecx,16
mov cx,ax ;fetch small result.
popm eax,edx
ret
SetFilePointer endp
efile
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?