You are here : assembly8086 INT 21HAH3CH

AH=3CH - 8086 INT 21H

AH = 3Ch - "CREAT" - CREATE OR TRUNCATE FILE

Entry:

  • CX = file attributes
  • DS:DX -> ASCIZ filename

Return:

  • CF clear if successful, AX = file handle
  • CF set on error AX = error code (03h,04h,05h)

Notes: if a file with the given name exists, it is truncated to zero length


Syntax

MOV AH,3CH
INT 21H


Example

MOV AH,3CH
INT 21H


Output / Return Value

Return:
    CF clear if successful, AX = file handle
    CF set on error AX = error code (03h,04h,05h)


Limitations


Alternatives / See Also

Open a File


Reference