Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>function 4ch (76) terminate a process (exit)</b> http://www.X-Hacker.org [<<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: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson