home *** CD-ROM | disk | FTP | other *** search
/ Power CD-ROM!! 7 / POWERCD7.ISO / prgmming / clipper / pspseg.c < prev    next >
C/C++ Source or Header  |  1993-10-14  |  1KB  |  56 lines

  1. /*
  2.  * File......: PSPSEG.C
  3.  * Author....: Dave Pearson
  4.  * BBS.......: The Dark Knight Returns
  5.  * Net/Node..: 050/069
  6.  * User Name.: Dave Pearson
  7.  * Date......: $Date$
  8.  * Revision..: $Revision$
  9.  * Log file..: $Logfile$
  10.  *
  11.  * This is an original work by Dave Pearson and is placed in the public
  12.  * domain.
  13.  *
  14.  * Modification history:
  15.  * ---------------------
  16.  *
  17.  * $Log$
  18.  *
  19.  */
  20.  
  21. // NOTE: This code has been written for and compiled with Borland C++
  22. //       Version 3.1
  23. //
  24.  
  25. #include <extend.h>
  26.  
  27. /*  $DOC$
  28.  *  $FUNCNAME$
  29.  *      GT_PSPSEG()
  30.  *  $CATEGORY$
  31.  *      Environment
  32.  *  $ONELINER$
  33.  *      Get the location of the program's PSP.
  34.  *  $SYNTAX$
  35.  *      GT_PspSeg() --> nPSPSegment
  36.  *  $ARGUMENTS$
  37.  *      None.
  38.  *  $RETURNS$
  39.  *      The location of the program's PSP.
  40.  *  $DESCRIPTION$
  41.  *      GT_PspSeg() can be used to gain access to your programs PSP.
  42.  *  $EXAMPLES$
  43.  *      // Display the location of the PSP.
  44.  *
  45.  *      ? GT_PspSeg()
  46.  *  $SEEALSO$
  47.  *  $END$
  48.  */
  49.  
  50. CLIPPER GT_PspSeg()
  51. {
  52.         asm     Mov     AH,0x62
  53.         asm     Int     0x21
  54.         _retnl(_BX);
  55. }
  56.