home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / microcrn / issue_48.arc / PPXFER.ARC / PPXFER.H < prev   
Text File  |  1989-03-26  |  975b  |  29 lines

  1. #define MASM     /* comment this if you don't own masm */
  2. #define TIME     /* program generates timing information */
  3. /* Base address for my modified parallel printer card: */
  4. #define SPECIAL 0x270
  5. #define LPT1
  6. #define LPT2
  7. #define HERC 0x3bc
  8. #define MGA HERC
  9. #define BASE SPECIAL
  10. typedef unsigned char dbyte;
  11. #define ATTN  27           /* the "attention" character -- an escape */
  12. #define LDELIMIT '{'       /* left delimiter for parsing control messages */
  13. #define RDELIMIT '}'       /* right delimiter for parsing control messages */
  14. #define BUFSIZE 1000
  15.  
  16. #ifdef MASM
  17.  
  18. /* assembly-language routines in ppblock.c.  These send blocks of dbytes
  19.    quickly so file transfers are fast */
  20.    
  21. /* Send a block of dbytes.  Send "count" dbytes, located in "buffer" */
  22. void send_block(dbyte * buffer, unsigned int count);
  23.  
  24. /* Receive exactly "count" dbytes; place them in "buffer" */
  25. void receive_block(dbyte * buffer, unsigned int count);
  26.  
  27. #endif MASM
  28.  
  29.