home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / dos_ency / section5 / fxn62h.asm < prev    next >
Encoding:
Assembly Source File  |  1988-08-11  |  846 b   |  17 lines

  1.         ;************************************************************;
  2.         ;                                                            ;
  3.         ;       Function 62H: Get Program Segment Prefix Address     ;
  4.         ;                                                            ;
  5.         ;       int get_psp()                                        ;
  6.         ;                                                            ;
  7.         ;       Returns PSP segment.                                 ;
  8.         ;                                                            ;
  9.         ;************************************************************;
  10.  
  11. cProc   get_psp,PUBLIC
  12. cBegin
  13.         mov     ah,62h          ; Set function code.
  14.         int     21h             ; Get PSP address.
  15.         mov     ax,bx           ; Return it in AX.
  16. cEnd
  17.