FIO stdout; /* external definitions */ int base=0; /* lowest port # for most functions */ int group=0; /* group # */ int functs=0; /* upper 6 bits of group select port */ int wrdsze=8; /* word size ( 5, 6, 7, 8, ) */ char stopsze='l'; /* stop bit lenth ( 'l', 's') */ char parity='n'; /* parity enable bit ( 'y', 'n' ) */ char eoparty='e'; /* even or odd parity ( 'e', 'o' ) */ char dtr='n'; /* data terminal ready ( 'y', 'n' ) */ char rts='n'; /* request to send ( 'y', 'n' ) */ char threint='n'; /* trans. holding reg. interrupt */ char drint='n'; /* data ready interrupt */ char rlint='n'; /* receive line interrupt */ char modint='n'; /* modem interrupt */ char buff[BUFSZ]='\0'; /* buffer for output to terminal */ int baud=0; /* baud rate */ int abaud[] = { /* array of most common baud rates */ 110, 300, 600, 1200, 2400, 4800, 9600, 19200 }; int dbaud[]= { /* holds the divisor for the baud rate */ 1047, 384, 192, 96, /* in an array that matches the array */ 48, 24, 12, 6 /* above for baud rates */ }; /* has the addr of the function */ int (*error)()=0; /* that failed , cannot point to a * function that needs parameters */ int erflg=0; /* 0 if not in error loop, 1 if it is */