You are here : assembly8086 INT 21HAH3EH

AH=3EH - 8086 INT 21H

AH = 3Eh - "CLOSE" - CLOSE FILE

Entry: BX = file handle

Return:

  • CF clear if successful, AX destroyed
  • CF set on error, AX = error code (06h)

Note: if the file was written to, any pending disk writes are performed, the time and date stamps are set to the current time, and the directory entry is updated


Syntax

MOV AH,3EH
INT 21H


Example

MOV AH,3EH
INT 21H


Output / Return Value

Return:
    CF clear if successful, AX destroyed
    CF set on error, AX = error code (06h)


Limitations


Alternatives / See Also


Reference