home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
prof_c
/
05oslib
/
bios
/
kbd_stat.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1988-08-11
|
334 b
|
20 lines
/*
* kbd_stat -- return the keyboard status
* word (bit-significant)
*/
#include <dos.h>
#include <local\bioslib.h>
#include <local\keybdlib.h>
unsigned char
kbd_stat()
{
union REGS inregs, outregs;
inregs.h.ah = KBD_STATUS;
int86(KEYBD_IO, &inregs, &outregs);
return ((unsigned char)(outregs.h.al));
}