summaryrefslogtreecommitdiff
path: root/get_raw.c
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2015-10-05 08:38:46 -0400
committerJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2015-10-05 08:38:46 -0400
commit99cf9c4dc5855b1f5f26d00267fdbbe672ee27a7 (patch)
tree83a11a0dc0f87198e251ca7ec19504aeec152bc1 /get_raw.c
downloadfoslib-master.tar.gz
foslib-master.zip
Initial commitHEADmaster
Diffstat (limited to 'get_raw.c')
-rw-r--r--get_raw.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/get_raw.c b/get_raw.c
new file mode 100644
index 0000000..d7dfe45
--- /dev/null
+++ b/get_raw.c
@@ -0,0 +1,17 @@
+#include "fossil.h"
+#include <dos.h>
+#include <stdlib.h>
+
+unsigned char Get_Raw(void)
+{
+ union REGS regs;
+
+ /* Changed by jba -> regs.h.ah = 0x20; */
+ regs.h.ah = 0x02;
+ regs.h.al = 0x00;
+ regs.x.dx = (unsigned char) port;
+ int86(FOSSIL_INT, &regs, &regs);
+ regs.h.ah = 0x00;
+ if(regs.x.ax == 0xFFFF) return(FALSE);
+ return(unsigned char)regs.h.al;
+ }