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
◄Summary► ◄Notes► ◄Example► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Description: Get Return Code
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
00H 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
03H Int 27H
AL=return code passed by child process (0 if child
terminated by Int 20H, Int 21H Function 0, or
Int 27H)
-♦-