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

00h (0) Terminate Program