#include "dos.h";

unsigned char charout(portno, ch)
int portno;                     /* 1 for com2, 0 for com1 */
unsigned char ch;
{
union REGS inr, outr;
unsigned char status;

     inr.x.dx = portno;
     inr.h.ah = 1;              /* Function number */
     inr.h.al = ch;             /* character to transmit */
     int86(0x14, &inr, &outr);
     status = outr.h.ah;
     return(status);
}


/* Figure 16.2: Character Output using ROM-BIOS */


