qa.hlp (Table of Contents; Topic list)
Int 21H Function 31H
   Summary  Notes  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Terminate and Stay Resident
 
  Terminates execution of the currently executing program, passing a return
  code to the parent process, but reserves part or all of the program's
  memory so that it will not be overlaid by the next transient program to
  be loaded.
 
 
  Input                                                     Output
  ══════════════════════════════════════════════            ═══════
  AH=31H                                                    Nothing
  AL=return code
  DX=amount of memory to reserve (in paragraphs)
                                    -♦-