[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 4Ch (76)        Terminate a Process (EXIT)

    Ends a program and returns a code to the calling process.

       On entry:      AH         4Ch
                      AL         Return code

       Returns:       Nothing


    This function is the proper method of terminating a program in DOS
    versions 2.0 and above. It closes all files, and hands control back to
    the parent process (usually COMMAND.COM), along with the return code
    specified in AL.

       Notes:         The return code may be tested by means of Function
                      4Dh or the DOS ERRORLEVEL command.

See Also: 00h 31h 4Dh INT 27h

Online resources provided by: --- NG 2 HTML conversion by Dave Pearson