qa.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
SetDTA
   Example  Back  Contents  Index
──────────────────────────────────────────────────────────────────────────────
 
;* SetDTA - Sets address for new Disk Transfer Area.
;*
;* Shows:   DOS Function - 1Ah (Set DTA Address)
;*
;* Params:  dta - Far pointer to new transfer address
;*
;* Return:  None
 
SetDTA  PROC \
        USES ds, \
        dta:FAR PTR BYTE
 
        lds     dx, [dta]               ; Point DS:DX to DTA
        mov     ah, 1Ah                 ; DOS Function 1Ah
        int     21h                     ; Set DTA Address
        ret
 
SetDTA  ENDP
                                    -♦-