home *** CD-ROM | disk | FTP | other *** search
- ;****************************************************************************
- ; Filename: EXIT.ASM
- ; Author: Peter Andersson
- ; Version: 0.0
- ; Created: 1995.02.09
- ; Updated: -
- ;****************************************************************************
- ; Copyright Peter Andersson, 1994-1995.
- ; All rights reserved.
- ;****************************************************************************
- ; Function: VOID @exit(ULONG errorlevel);
- ; Comment: Exits your program with an errorlevel
- ; Input: Eax, errorlevel - errorlevel returned to the system. Should be
- ; between 0 and 255.
- ; Output: nothing
- ;****************************************************************************
-
- Include STDDEF.INC
-
- Codeseg
-
- Extrn AbortStackPos:Dword
- Extrn NoLanguage ExitSlow:Near
-
- Proc exit ,1
- Mov Esp,[AbortStackPos] ; Load startup stack
- Jmp ExitSlow ; Exit painfully... :)
- Endp
-
- End