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

     inr.x.dx = portno;
     inr.h.ah = 3;              /* Function number              */
     int86(0x14, &inr, &outr);
     status = outr.x.ax;
     return(status);
}



/* Figure 16.4: Get Port Status using ROM-BIOS */
