summaryrefslogtreecommitdiff
path: root/ctrl_ck.c
blob: 6b0bdfb71b6191d3553f13c3a7c8459171cc8e1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "fossil.h"
#include <dos.h>
#include <stdlib.h>

int Ctrl_Ck(unsigned char function)
{
        union REGS      regs;

        regs.h.ah = 0x10;
        regs.h.al = function;
        regs.x.dx = (unsigned char) port;
        int86(FOSSIL_INT, &regs, &regs);
        return(regs.x.ax);
}