Category : Assembly Language Source Code
Archive   : ASYNLIB2.ZIP
Filename : ASYNC.H

 
Output of file : ASYNC.H contained in archive : ASYNLIB2.ZIP
#ifndef _ASYNC_H_
#define _ASYNC_H_

int AsyncInit( int Port);
void AsyncStop( void),
AsyncClear( void),
AsyncOut( int c),
AsyncHand( int handshake),
AsyncSet( int Baud, int Control);
int AsyncIn( void),
AsyncInStat( void),
AsyncOutStat( void);
unsigned AsyncStat( void);

#define COM1 0
#define COM2 1
#define COM3 2
#define COM4 3

/* Defines for Com Port Paramaters, the second paramater to AsyncSet() */
#define BITS_8 0x03
#define BITS_7 0x02
#define STOP_1 0x00
#define STOP_2 0x04
#define EVEN_PARITY 0x18
#define ODD_PARITY 0x08
#define NO_PARITY 0x00

/* Defines for AsyncHand() */
#define DTR 0x01
#define RTS 0x02
#define USER 0x04
#define LOOPBACK 0x10

/* Defines for AsyncStat() */
#define D_CTS 0x0100
#define D_DSR 0x0200
#define D_RI 0x0400
#define D_DCD 0x0800
#define CTS 0x1000
#define DSR 0x2000
#define RI 0x4000
#define DCD 0x8000
#define PARITY 0x0004
#define THREMPTY 0x0020
#define BREAKDET 0x1000

#endif


  3 Responses to “Category : Assembly Language Source Code
Archive   : ASYNLIB2.ZIP
Filename : ASYNC.H

  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: http://www.os2museum.com/wp/mtswslnk/