home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
s
/
snip1292.zip
/
FASKBHIT.C
< prev
next >
Wrap
Text File
|
1992-12-26
|
311b
|
22 lines
/*
** by David Goodenough & Bob Stout
*/
#ifdef __TURBOC__
#define FAR far
#else
#define FAR _far
#endif
static int FAR * const bios = (int FAR *) 0x00400000l;
int fast_kbhit(void)
{
return(bios[0x1a] - bios[0x1c]);
}
void fast_kbflush(void)
{
bios[0x1a] = bios[0x1c];
}