blob: d7dfe4512cd58b69a5718c6f5c1633b1ce786c31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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, ®s, ®s);
regs.h.ah = 0x00;
if(regs.x.ax == 0xFFFF) return(FALSE);
return(unsigned char)regs.h.al;
}
|