home *** CD-ROM | disk | FTP | other *** search
- /*
- ┌────────────────────────────────────────────────────────────────────────────┐
- │ jzdosflg.c │
- │ Return the vector of the dos flag. The vector is the equivalent of a │
- │ char far pointer. If the byte there is 0, it's safe to call dos from an │
- │ interrupt handler. │
- │ │
- │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
- └────────────────────────────────────────────────────────────────────────────┘
- */
-
-
- #include <jaz.h>
- jzdosflg(fvector)
- TVECTOR *fvector;
- {
- TREG wreg;
-
- wreg.h.ah = 0x34; /* get address of dos flag */
-
- msdos(&wreg);
-
- fvector->segment = wreg.x.es;
- fvector->offset = wreg.x.bx;
- }