diff options
| author | Jeffrey Armstrong <jeffrey.armstrong@approximatrix.com> | 2015-10-05 08:38:46 -0400 |
|---|---|---|
| committer | Jeffrey Armstrong <jeffrey.armstrong@approximatrix.com> | 2015-10-05 08:38:46 -0400 |
| commit | 99cf9c4dc5855b1f5f26d00267fdbbe672ee27a7 (patch) | |
| tree | 83a11a0dc0f87198e251ca7ec19504aeec152bc1 /kb_hit.c | |
| download | foslib-99cf9c4dc5855b1f5f26d00267fdbbe672ee27a7.tar.gz foslib-99cf9c4dc5855b1f5f26d00267fdbbe672ee27a7.zip | |
Diffstat (limited to 'kb_hit.c')
| -rw-r--r-- | kb_hit.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kb_hit.c b/kb_hit.c new file mode 100644 index 0000000..6b56474 --- /dev/null +++ b/kb_hit.c @@ -0,0 +1,14 @@ +#include <stdlib.h>
+#include <dos.h>
+#include "fossil.h"
+
+int Kb_Hit(void)
+{
+ union REGS regs;
+ regs.h.ah = 0x0d;
+ regs.h.al = 0x00;
+ int86(FOSSIL_INT, ®s, ®s);
+ if(regs.x.ax == 0xffff)
+ return(FALSE);
+ return(TRUE);
+}
|
