Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Int 21h Function 16h
 Detail                                    Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   21h     Function:   16h
 
  Title:       Create File
 
  See also:    Create File (handle), Create New File, @MakeFile
 
  Description:
 
     Creates a new directory entry in the current directory or
     truncates any existing file with the same name to zero length.
     Opens the file for subsequent read/write operations.
 
     Input                        Output
 
     AH = 16h                     If function successful (file was
     DS:DX = segment:offset of    created or truncated)
             unopened file          AL = 00h
             control block        And FCB filled in by MS-DOS as
                                  follows:
                                  ■ Drive field (offset 00h) = 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
                                  (directory full)
                                    AL = FFh
                                    -♦-