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
See also: 31h
See also: 4Dh
See also: INT 27h

4Ch (76) Terminate a Process (EXIT)