home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programming
/
powerprogramming1994.iso
/
progtool
/
microcrn
/
issue_48.arc
/
PPXFER.ARC
/
PPXFER.H
< prev
Wrap
Text File
|
1989-03-26
|
975b
|
29 lines
#define MASM /* comment this if you don't own masm */
#define TIME /* program generates timing information */
/* Base address for my modified parallel printer card: */
#define SPECIAL 0x270
#define LPT1
#define LPT2
#define HERC 0x3bc
#define MGA HERC
#define BASE SPECIAL
typedef unsigned char dbyte;
#define ATTN 27 /* the "attention" character -- an escape */
#define LDELIMIT '{' /* left delimiter for parsing control messages */
#define RDELIMIT '}' /* right delimiter for parsing control messages */
#define BUFSIZE 1000
#ifdef MASM
/* assembly-language routines in ppblock.c. These send blocks of dbytes
quickly so file transfers are fast */
/* Send a block of dbytes. Send "count" dbytes, located in "buffer" */
void send_block(dbyte * buffer, unsigned int count);
/* Receive exactly "count" dbytes; place them in "buffer" */
void receive_block(dbyte * buffer, unsigned int count);
#endif MASM