# include /* * names for groups of things */ # define PROTOCOL 0 # define CBAUD 1 # define PBAUD 2 # define PTYPE 3 /* * baud rate codes */ # define NBAUD 7 # define B110 0 # define B300 1 # define B600 2 # define B1200 3 # define B2400 4 # define B4800 5 # define B9600 6 # define B19200 7 # define LOWBAUD B110 # define HIGHBAUD B9600 /* * types of printers */ # define SERIAL 0 # define CENTRONICS 1 /* * protocols */ # define XONXOFF 0 # define HARDHAND 1 /* hardware handshaking */ /* * CP/M system call numbers */ # define CPUTC 2 # define CGETC 1 # define CPRS 9 /* * addresses */ # define DEFBIOS 0xf200 # define DEFRAMDATY 0xf89b /* * names of places on the screen */ # define CBAUDSPOT 3 # define TYPESPOT 5 # define PBAUDSPOT 7 # define PROTOSPOT 9 # define SELECTSPOT 13 /* * details of the bios's location on the system tracks */ # define BIOSSIZE 2560 # define BIOSREC 20 /* 20 records, 128 bytes each */ # define RECSIZE 128 # define BIOSTRACK 1 # define BIOSSTART 13 /* first rec. of BIOS */ # define BIOSEND (BIOSSTART + BIOSREC) # define DCAOFFSET 0x50 /* * BIOS jump table offsets */ # define GETDISK 25 # define SETDISK 14 # define SETDRV 0x1b # define SECTRAN 0x30 # define SETTRK 0x1e # define SETSEC 0x21 # define SETDMA 0x24 # define BIORED 0x27 # define BIOWRT 0x2a /* * names of specific ascii characters */ # define ESC 033 unsigned char *baudname[], *bios, *biosbuf, cent, hard, *pname[], /* table of printer interface names */ *protoname[], /* table of printer protocol names */ cbaud, pbaud, ptype, protocol, *ramdaty;