/*
>>:yamsys.h 08-13-82  mods for big-board by G. Banks
 *
 * global equates for specific installation and modem ports
 * Other modem specific stuff is in yam5.c
 *
 */

/* files have single letter ext so pip yam?????.? gets all source but no crl */

#define DEFBAUD 1200
#define HELPFILE "A:YAMHELP.T"
#define PHONES "A:YAMPHONE.T"
#define USERINIT
#define CAFPERSONAL
#define LOOPBACKNONO "\020\003\021\023\033"
#define CPM
#define USERINIT
#define MODEMSTUFF
#define BDSC
#define CLKMHZ 3
#define SECPBLK 8 /* 1K blocks for single-density */
/* ********* following string must be in UPPER case ********* */
#define DISKS "AB"	/* legal disks for default selection */
#define MAXUSER 15	/* maximum user number */

/* defines for Big Board */
#define FLAVOR "Big Board YAM"
#define TERMRESET	"\032"
#define TERMINIT	"\032"

#define X8BIT	0x60	/* transmit 8 bits */
#define XDTR	0x80	/* ready to transmit */
#define XBREAK	0x10	/* transmit a break */
#define XENABLE 0x08	/* transmit enable */
#define XRTS	0x02	/* Ready to send */
#define R8BIT	0xC0	/* receive 8 bits */
#define R1STOP  0x04	/* receive 1 stop bit */
#define RENABLE 1	/* receive enable */
#define R16CLCK 0x40	/* 16 x clock mode */
#define BAUDPORT 0	/* baud rate generator port (SIO chan A) */

#define DPORT MDATA
#define SPORT MSTAT

char inp();				/* for fastest 8080 code */
#define MIREADYERROR		/* rx data ready and error bits in smae reg */
#define CDO FALSE		/* don't bother with carrier detect */
#define MIREADYMASK 1      /* rx character available */
#define MIERRORMASK 112		/* rx error condition */

#define MIREADY (inp(SPORT) & MIMASK)	/* char ready at modem */
#define MOREADY (inp(SPORT) & MOMASK)	/* modem ready to transmit */
#define MICHAR (inp(DPORT))	/* get modem char */
#define CIREADY (bios(2,0))	/* check console status */
#define COREADY TRUE		/* console is always ready */
#define CICHAR (bios(3,0))

/* It would be nice to have parameterized macros to do the following */
#define MODATA Dport 		/* modem data output port */

char bios();
#define POREADY bios(15,0)



/* STDIO file included here to simplify cross-compiles of cyams */
#include "a:bdscio.h"


