qa.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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
                                    -♦-