home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource3
/
187_01
/
restdta.c
< prev
next >
Wrap
C/C++ Source or Header
|
1986-02-21
|
947b
|
24 lines
/*@*****************************************************/
/*@ */
/*@ restdta - restore the current DOS DTA. */
/*@ */
/*@ Usage: restdta(); */
/*@ */
/*@ returns zero. */
/*@ */
/*@ NOTE: savedta() orignially saved it. */
/*@ */
/*@*****************************************************/
extern unsigned _rax, _rbx, _rcx, _rdx, _rsi, _rdi, _res, _rds;
extern char _carryf, _zerof;
extern int dtads, dtadx;
restdta()
{
_rax = 0x1a00; /* set DTA function */
_rds = dtads; /* segment address */
_rdx = dtadx; /* offset */
_doint(0x21); /* call DOS */
return 0;
}