blob: b136145562493cfcd4607431306531bb43e0ba0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "fossil.h"
#include <dos.h>
#include <stdlib.h>
int F_Init(void)
{
union REGS regs;
regs.h.al = 0;
regs.h.ah = 0x04; /* function = initialize driver */
regs.x.dx = (unsigned char) port;
regs.x.bx = 0; /* no ^C */
int86(FOSSIL_INT, ®s, ®s);
if (regs.x.ax != 0x1954)
return (FALSE); /* unable to initialize fossil */
else if (regs.h.bl < 0x18 || regs.h.bh < 5) {
return (FALSE);
} else
return (TRUE);
}
|