home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boston 2
/
boston-2.iso
/
DOS
/
PROGRAM
/
C
/
JAZLIB
/
JZBIOSTM.C
< prev
next >
Wrap
Text File
|
1993-12-01
|
778b
|
29 lines
/*
┌────────────────────────────────────────────────────────────────────────────┐
│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);
}