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

  1.         ;************************************************************;
  2.         ;                                                            ;
  3.         ;                Function 1AH: Set DTA Address               ;
  4.         ;                                                            ;
  5.         ;                int set_DTA(pDTAbuffer)                     ;
  6.         ;                    char far *pDTAbuffer;                   ;
  7.         ;                                                            ;
  8.         ;                Returns 0.                                  ;
  9.         ;                                                            ;
  10.         ;************************************************************;
  11.  
  12. cProc   set_DTA,PUBLIC,ds
  13. parmD   pDTAbuffer
  14. cBegin
  15.         lds     dx,pDTAbuffer   ; DS:DX = pointer to buffer.
  16.         mov     ah,1ah          ; Set function code.
  17.         int     21h             ; Ask MS-DOS to change DTA address.
  18.         xor     ax,ax           ; Return 0.
  19. cEnd
  20.