Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 21h Function 4Dh
 Detail Example                          Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   21h     Function:   4Dh
 
  Title:       Get Return Code
 
  See also:    Execute Program
 
  Description:
 
     Used by a parent process, after the successful execution of an
     EXEC call (Int 21h Function 4Bh), to obtain the return code and
     termination type of a child process.
 
     Input        Output
 
     AH = 4Dh     AH = Exit type
                     = 00h (if normal termination by Int 20h, Int 21h
                            Function 0, or Int 21h Function 4Ch)
                     = 01h (if termination by user's entry of CTRL+C)
                     = 02h (if termination by critical-error handler)
                     = 03h (if termination by Int 21h Function 31h or
                            Int 27h)
                  AL = Return code passed by child process (0 if child
                       terminated by Int 20h, Int 21h Function 00h, or
                       Int 27h)
                                    -♦-