home *** CD-ROM | disk | FTP | other *** search
- /*
- ┌────────────────────────────────────────────────────────────────────────────┐
- │jzgetdta.c │
- │Return the disk transfer address so that a routine may temporarily change │
- │it , then change it back. │
- │ │
- │See jzgetfcb.c for examples │
- │ │
- │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
- └────────────────────────────────────────────────────────────────────────────┘
- */
-
- jzgetdta(fofs , fseg)
- int *fofs,*fseg;
- {
- TREG wreg;
-
- wreg.h.ah = 0x2F; /* get dta function */
- msdos(&wreg); /* call dos to get dta address */
-
- *fofs = wreg.x.bx;
- *fseg = wreg.x.es;
- }