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 00h (0) terminate program</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 00h (0)         Terminate Program

    Terminates a program and returns to DOS

       On entry:      AH         00h
                      CS         Segment address of PSP

       Returns:       Nothing

  --------------------------------------------------------------------------

    DOS terminates the program, flushes the file buffers, and restores the
    terminate, Ctrl-Break, and critical error exit addresses from the PSP.

       Setup:         Close all files first.  Then ensure that CS contains
                      the segment address of the PSP.

       Notes:         This function is an historical remnant offering no
                      advantages over Function 4Ch. It's better to use
                      function 4Ch, which returns an error code that other
                      programs can access (via Function 4Dh or the
                      ERRORLEVEL statement in batch files); also, CS need
                      not be set first when using Function 4Ch. (INT 20h
                      is equivalent to Function 0.)

See Also: 4Ch INT 20h 31h INT 27h

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson