home *** CD-ROM | disk | FTP | other *** search
- /*
- ┌────────────────────────────────────────────────────────────────────────────┐
- │jzbiostm │
- │Return a time string in the form HH:MM:SS using the bios dword ptr in low │
- │memory at 0x40:0x6C. │
- │ │
- │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
- └────────────────────────────────────────────────────────────────────────────┘
- */
-
- #include <jaz.h>
- jzbiostm(fstr)
- char *fstr;
- {
-
- long wclock;
- unsigned int whour,wminute,wsecond,wremain;
-
- wclock = MEML(0x40,0x6C); /* point to clock in low memory bios */
-
- whour = wclock / 65543;
- wremain = wclock % 65543;
- wminute = wremain / 1092;
- wremain %= 1092;
- wsecond = wremain / 18;
-
- sprintf(fstr,"%02d:%02d:%02d",whour,wminute,wsecond);
- }