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 < prev    next >
Encoding:
Assembly Source File  |  1995-05-20  |  931 b   |  31 lines

  1. ;****************************************************************************
  2. ; Filename: EXIT.ASM
  3. ;   Author: Peter Andersson
  4. ;  Version: 0.0
  5. ;  Created: 1995.02.09
  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
  13. ;    Input: Eax, errorlevel - errorlevel returned to the system. Should be
  14. ;           between 0 and 255.
  15. ;   Output: nothing
  16. ;****************************************************************************
  17.  
  18.     Include    STDDEF.INC
  19.  
  20.     Codeseg
  21.  
  22. Extrn AbortStackPos:Dword
  23. Extrn NoLanguage ExitSlow:Near
  24.  
  25. Proc    exit    ,1
  26.         Mov    Esp,[AbortStackPos]        ; Load startup stack
  27.         Jmp    ExitSlow            ; Exit painfully... :)
  28. Endp
  29.  
  30.     End
  31.