Interrupt 21h Function 7139h

Creates a new directory having the given name.

mov ax, 7139h     ; Make Directory
mov dx, seg Name  ; see below
mov ds, dx
mov dx, offset Name
int 21h

jc  error

Parameters

Name
Address of a null-terminated string specifying the name of the directory to create. Long filenames are allowed.

Return Value

Clears the carry flag if successful. Otherwise, the function sets the carry flag and sets the AX register to an error value.