home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programming
/
powerprogramming1994.iso
/
progtool
/
c
/
jazlib.arc
/
JZBIOSTM.C
< prev
next >
Wrap
Text File
|
1986-04-25
|
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);
}