Assembly Language Help (alang.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 0Fh
 Detail                                    Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   21h     Function:   0Fh
 
  Title:       Open File
 
  See also:    Open File (handle)
 
  Description:
 
     Opens a file and makes it available for subsequent read/write
     operations.
 
     Input                       Output
 
     AH = 0Fh                    If function successful (file found)
     DS:DX = segment:offset        AL = 00
             of file control     And FCB filled in by MS-DOS as
             block               follows:
                                 ■ Drive field (offset 00h0) = 1 for
                                   drive A, 2 for drive B,...
                                 ■ Current block field (offset 0Ch) = 00h
                                 ■ Record size field (offset 0Eh) = 0080h
                                 ■ Size field (offset 10h) = File size
                                   from directory
                                 ■ Date field (offset 14h) = Date stamp
                                   from directory
                                 ■ Time field (offset 16h) = Time stamp
                                   from directory
 
                                 If function unsuccessful
                                 (file not found)
                                   AL = 0FFh
                                    -♦-