Category : Files from Magazines
Archive   : APR91.ZIP
Filename : 2N04007A

Output of file : 2N04007A contained in archive : APR91.ZIP
* COM.H Copyright (C) 1990 by Mark R. Nelson
* This header file contains the structures, constants, and function
* prototypes necessary to use the RS-232 routines in COM.C

* This structure defines an RS-232 port.
typedef struct {
unsigned int address; /* Address of the 8250 */
char buffer[256]; /* The receive buffer. */
unsigned char head; /* Offset for insertion into the buff.*/
unsigned char tail; /* Offset for removal from the buffer.*/
unsigned char match; /* The status register match value */
} PORT ;

typedef struct {
unsigned int status_address; /* Address of the boards status reg. */
unsigned char irq_mask; /* The 8259 bits to set for this port */
unsigned char int_number; /* The interrupt number for this port.*/
void (interrupt far *old_vector)();/* The saved old interrupt vector. */
PORT *ports[4]; /* Ports for this board */
int port_count; /* Number of ports currently open */

BOARD *board_open( unsigned int address, unsigned char int_number );
PORT *port_open( BOARD *board, unsigned int address, unsigned char match );
void port_set(PORT *port, long speed, char parity, int data, int stopbits);
void port_close( PORT *port );
void board_close( BOARD *board );
void port_putc( PORT *port, unsigned char c);
int port_getc( PORT *port );

#ifdef M_I86
#define inportb inp
#define outportb outp
#define getvect _dos_getvect
#define setvect _dos_setvect

  3 Responses to “Category : Files from Magazines
Archive   : APR91.ZIP
Filename : 2N04007A

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: