home *** CD-ROM | disk | FTP | other *** search
/ Groovy Bytes: Behind the Moon / groovybytes.iso / GROOVY / SND_TOOL / FUNK108A.ZIP / DOS32V30.ZIP / PAL / VARIOUS / _EXIT.ASM next >
Encoding:
Assembly Source File  |  1995-05-20  |  1016 b   |  32 lines

  1. ;****************************************************************************
  2. ; Filename: _EXIT.ASM
  3. ;   Author: Peter Andersson
  4. ;  Version: 0.0
  5. ;  Created: 1995.03.31
  6. ;  Updated: -
  7. ;****************************************************************************
  8. ; Copyright Peter Andersson, 1994-1995.
  9. ; All rights reserved.
  10. ;****************************************************************************
  11. ; Function: VOID @_exit(ULONG errorlevel);
  12. ;  Comment: Exits your program with an errorlevel and does not flush any
  13. ;           buffers or executes any registered atexit functions.
  14. ;    Input: Eax, errorlevel - errorlevel returned to the system. Should be
  15. ;           between 0 and 255.
  16. ;   Output: nothing
  17. ;****************************************************************************
  18.  
  19.     Include    STDDEF.INC
  20.  
  21.     Codeseg
  22.  
  23. Extrn AbortStackPos:Dword
  24. Extrn NoLanguage ExitQuick:Near
  25.  
  26. Proc    _exit   ,1
  27.         Mov    Esp,[AbortStackPos]        ; Load startup stack
  28.         Jmp    ExitQuick            ; Exit quickly
  29. Endp
  30.  
  31.     End
  32.