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.
Int 21H Function 62H
   Summary  Notes  Example  Back
──────────────────────────────────────────────────────────────────────────────
 
▀ Before a program receives control from MS-DOS, its program segment pre-
  fix is set up to contain certain vital information, such as:
  - the segment address of the program's environment block;
  - the command line originally entered by the user;
  - the original contents of the terminate, CTRL+C, and critical-error
    handler vectors;
  - and the top address of available RAM.
 
▀ The segment address of the PSP is normally passed to the program in reg-
  isters DS and ES when it initially receives control from MS-DOS. This
  function allows a program to conveniently recover the PSP address at any
  point during its execution, without having to save it at program entry.
                                    -♦-