home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
c
/
cnews004.arc
/
FF.ARC
/
DTA.C
< prev
next >
Wrap
Text File
|
1987-06-02
|
441b
|
25 lines
#include <dos.h>
/* Set DTA address */
set_DTA(seg,off)
unsigned seg, off;
{
union REGS inregs;
struct SREGS segregs;
inregs.h.ah=0x1a;
segregs.ds=seg;
inregs.x.dx=off;
int86x(0x21,&inregs,&inregs,&segregs);
}
/* Get current DTA address */
get_DTA(seg,off)
unsigned *seg, *off;
{
union REGS inregs;
struct SREGS segregs;
inregs.h.ah=0x2f;
int86x(0x21,&inregs,&inregs,&segregs);
*seg=segregs.es;
*off=inregs.x.bx;
}