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

void WatchDog(unsigned char function)
{
        union REGS      regs;

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