/* >>:yamsys.h 8-25-83 * * header file for yam Televideo * */ #define ANSWERBACK "\215\012C. FORSBERG PTL\215\012\021" /* files have single letter ext so pip yam?????.? gets all source but no crl */ #define HELPFILE "A:YAMHELP.T" #define PHONES "A:PHONES.T" #define LOGUSER 0 #define LOGRX "RXLOG" #define LOGFILE #define USQ #define PORTSELAD #define LOOPBACKNONO "\020\003\021\023\033" #define CPM #define BDSC #define FLAVOR "TV YAM" #define CLKMHZ 4 #define MOMCAL 400 #define SECPBLK 16 /* 2k blocks on CDR DD controller 5/8" disk */ /* ********* following string must be in UPPER case ********* */ #define DISKS "ABCDEF" /* legal disks for default selection */ #define MAXUSER 15 /* maximum user number */ /* defines for Televideo 820H */ #define TERMRESET "\033f\033G0\r" #define TERMINIT "\033f\033G0\r" #define TERMREPLOT "\032" /* mode for replot -no 25th, no wrap */ #define TWIDTH 80 /* # of columns */ #define TLENGTH 24 /* # of lines */ #define CLEARS "\032" /* String to clear screen on console */ #define CLEARL "\r\033T" /* String to clear line on console */ #define INTOREV "\033G4" /* switch console into reverse video */ #define OUTAREV "\033G0" /* switch console OUT of reverse video */ #define CURSOROFF "\033.0" /* String to turn cursor off */ #define CURSORON "\033.4" /* String to turn cursor on */ #define BRKKEY 0 #define DPORT 0x21 #define SPORT 0x23 char inp(); /* for fastest 8080 code */ #define MIREADY (inp(Sport)&1) /* value != 0 if char available */ #define MIREADYERROR /* rx data ready and error bits in same reg */ #define CDO FALSE /* don't bother with carrier detect */ #define MIREADYMASK 01 /* rx character available */ #define MIERRORMASK 0200 /* rx error condition */ #define MICHAR (inp(Dport)) /* get char assuming miready */ #define MOREADY (inp(Sport)&04) /* modem ready to load next char */ #define MOEMPTY ((inpp(1)&ALLSENT)==ALLSENT) /* modem shift reg EMPTY */ #define MODOUT(x) outp(Dport, x) #define MODATA Dport /* modem data output port */ char bios(); #define POREADY bios(15,0) #define LPOUT(x) bios(5,x) #define CIREADY bios(2,0) #define CICHAR bios(3,0) #define COREADY TRUE /* STDIO file included here to simplify cross-compiles of cyams */ #include "a:bdscio.h" #undef Z89 #undef Z19 #define TTYOUT(x) bios(4,x)