From 99cf9c4dc5855b1f5f26d00267fdbbe672ee27a7 Mon Sep 17 00:00:00 2001 From: Jeffrey Armstrong Date: Mon, 5 Oct 2015 08:38:46 -0400 Subject: Initial commit --- key_read.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 key_read.c (limited to 'key_read.c') diff --git a/key_read.c b/key_read.c new file mode 100644 index 0000000..383995a --- /dev/null +++ b/key_read.c @@ -0,0 +1,14 @@ +#include +#include +#include "fossil.h" +unsigned char Key_Read(void) +{ + + union REGS regs; + int c; + regs.h.ah = 0x0E; + regs.h.al = 0x00; + int86(FOSSIL_INT, ®s, ®s); + c = regs.h.al & 0xff; + return(unsigned char)c; +} -- cgit v1.2.3