/* >>:yamsys.h 6-15-83 * * global equates for specific installation and modem ports * Other modem specific stuff is in yam5.c * */ #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 "0/A:YAMHELP.T" #define PHONES "0/A:PHONES.T" #define MYSYSTEM "#CPMHeath/Zenith,CC,HC,PA,PL\015" #define LOGUSER 0 #define LOGRX "RXLOG" #define LOGFILE #define USQ #define PORTSELAD #define CPM #define BDSC #define FLAVOR "2 mHz Z89 YAM" #define CLKMHZ 2 #define MOMCAL 1500 #define KBMASK 0177 #define BRKKEY 000 #define ESCCAL 100 #define SCREAMER 4800 #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 Heath Z89 aux board port at 0320 */ #define STATLINE /* do special status line information */ #define Z19 /* terminal type */ /* 25th line off, wrap at end of line*/ #define TERMRESET "\033y1\033x9\033v" #define TERMINIT "\033z" #define TERMREPLOT "\033y1\033w\033E" /* no 25th, no wrap erase */ #define Z89 /* type of modem port */ #define DPORT 0330 #define SPORT 0335 #define CSTAT 0355 /* Console status port */ #define CDATA 0350 /* Console data port */ #define CIMASK 01 /* Console input data ready mask */ #define COMASK 0100 /* Console output data ready mask */ #define TWIDTH 80 /* # of columns */ #define TLENGTH 24 /* # of lines */ #define CLEARS "\033E" /* String to clear screen on console */ #define INTOREV "\033p" /* String to switch console into reverse video */ #define OUTAREV "\033q" /* String to switch console OUT of reverse video */ #define CURSOROFF "\033x5" /* String to turn cursor off */ #define CURSORON "\033y5" /* String to turn cursor on */ 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 smae reg */ #define CDO FALSE /* don't bother with carrier detect */ #define MIREADYMASK 01 /* rx character available */ #define MIERRORMASK 036 /* rx error condition */ #define MICHAR (inp(Dport)) /* get char assuming miready */ #define MOREADY (inp(Sport)&040) /* modem ready to load next char */ #define MOEMPTY ((inp(Sport)&0140)==0140) /* 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 (inp(CSTAT)&CIMASK) #define CICHAR (inp(CDATA)) #define COREADY (inp(CSTAT)&COMASK) /* STDIO file included here to simplify cross-compiles of cyams */ #include "a:bdscio.h" #define TTYOUT(x) outp(CDATA, x)