qa.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
EXIT
   Directive Summary  Summary  Example
──────────────────────────────────────────────────────────────────────────────
 
  Syntax:  .EXIT [exitcode]
 
  Generates a call to interrupt 21H, function 4CH, to exit from the
  program. Use of the optional exitcode parameter returns an exit code
  to DOS. The .MODEL directive must have previously been used. This
  directive should be used in any module that uses the .STARTUP
  directive; the assembler generates an advisory warning if you use
  .STARTUP without using .EXIT.
 
  exitcode    Optional return code. Can be a byte-sized register, memory
              location or constant. The .EXIT directive moves this value
              into AL.
 
  See Also:  .STARTUP
                                    -♦-