Int 21H Function 42H
◄Summary► ◄Notes► ◄Example► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Description: Set File Pointer
Sets the file location pointer relative to the start of file, end of
file, or current file position.
Input Output
══════════════════════════════ ══════════════════════════════
AH=42H If function successful
AL=method code Carry flag=clear
00H absolute offset from DX=most significant half of
start of file resulting file pointer
01H signed offset from AX=least significant half of
current file pointer resulting file pointer
02H signed offset from end If function unsuccessful
of file Carry flag=set
BX=handle AX=error code
CX=most significant half of
offset
DX=least significant half of
offset
-♦-