Function 62h Get PSP Address
entry AH 62h
return BX Segment address of the program segment prefix.
note 1) Before a program receives control from MS-DOS , its PSP is set up to
contain certain vital infromation, 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
- the top address of available RAM.
2) The segment address of the PSP is normally passed to the program in
registers DS and ES when it initially receives control from MS-DOS. Theis
function allows a program to conveniently recover the PSP address at any
point during its execution, without having to save it at program entry.
3) (DOS 3.x, ?4-) Cannot be used by any memory resident routine to obtain
its PSP address. This is because once the routine has executed a Keep
Process or Terminate & Stay Resident function, MS-DOS no longer considers
the routine active. The Get PSP function only applies to the program last
loaded by MS-DOS, which MS-DOS considers to be the currently active
program.
file: /Techref/int/21f/62.htm, 1KB, , updated: 2001/5/16 10:45, local time: 2024/12/26 22:24,
|
| ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://linistepper.com/Techref/int/21f/62.htm"> int 21f 62</A> |
Did you find what you needed?
|