Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>getpsp() get the program segment prefix</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
getpsp()                 Get the Program Segment Prefix

 #include   <dos.h>

 unsigned   getpsp(void);

    getpsp() uses DOS call 0x62 to get the segment address of the program
    segment prefix.

    Returns:    The segment value of the PSP.

      Notes:    getpsp() can only be called using DOS 3.x.  For versions
                of MS-DOS 2.x and 3.x, the global variable '_psp' set by
                the startup code can be used instead.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson