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

  1.         ;************************************************************;
  2.         ;                                                            ;
  3.         ;       Function 34H: Get Return Address of InDOS Flag       ;
  4.         ;                                                            ;
  5.         ;       char far *inDOS_ptr()                                ;
  6.         ;                                                            ;
  7.         ;       Returns a far pointer to the MS-DOS inDOS flag.      ;
  8.         ;                                                            ;
  9.         ;************************************************************;
  10.  
  11. cProc   inDOS_ptr,PUBLIC
  12. cBegin
  13.         mov     ah,34h          ; InDOS flag function.
  14.         int     21h             ; Call MS-DOS.
  15.         mov     ax,bx           ; Return offset in AX.
  16.         mov     dx,es           ; Return segment in DX.
  17. cEnd
  18.