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.)

Seealso:



This page last updated on Fri Nov 30 10:49:50 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster