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

int F_Send_Char(unsigned char function, unsigned char arg)
{
        union REGS      regs;

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