home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / dos_ency / section5 / fxn4dh.asm < prev    next >
Encoding:
Assembly Source File  |  1988-08-11  |  940 b   |  18 lines

  1.         ;************************************************************;
  2.         ;                                                            ;
  3.         ;        Function 4DH: Get Return Code of Child Process      ;
  4.         ;                                                            ;
  5.         ;        int child_ret_code()                                ;
  6.         ;                                                            ;
  7.         ;        Returns the return code of the last                 ;
  8.         ;        child process.                                      ;
  9.         ;                                                            ;
  10.         ;************************************************************;
  11.  
  12. cProc   child_ret_code,PUBLIC
  13. cBegin
  14.         mov     ah,4dh          ; Set function code.
  15.         int     21h             ; Ask MS-DOS to return code.
  16.         cbw                     ; Convert AL to a word.
  17. cEnd
  18.