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

  1.         ;************************************************************;
  2.         ;                                                            ;
  3.         ;       Function 4CH: Terminate Process with Return Code     ;
  4.         ;                                                            ;
  5.         ;       int terminate(returncode)                            ;
  6.         ;           int returncode;                                  ;
  7.         ;                                                            ;
  8.         ;       Does NOT return at all!                              ;
  9.         ;                                                            ;
  10.         ;************************************************************;
  11.  
  12. cProc   terminate,PUBLIC
  13. parmB   returncode
  14. cBegin
  15.         mov     al,returncode   ; Set return code.
  16.         mov     ah,4ch          ; Set function code.
  17.         int     21h             ; Call MS-DOS to terminate process.
  18. cEnd
  19.