#include "dos.h";

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

     inr.x.dx = portno;                          /* Port Number            */
     inr.h.ah = 0;                               /* Function number        */
     inr.h.al = parmbyte;
     int86(0x14, &inr, &outr);                   /* ROM-BIOS Serial i/o int*/
     status = outr.x.ax;
     return(status);
}

/* Figure 16.1: SETPARMS.C */
