home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / techs.zip / TECH3.ARC / READ.TXT < prev   
Text File  |  1985-11-04  |  1KB  |  41 lines

  1. PROGRAM NAME: Portswap.ASM
  2.  
  3. DESCRIPTION:  Swapping printer ports on the IBM PC.
  4.  
  5. ISSUE: August, 1985
  6. PAGE:  13
  7.  
  8. SOFTWARE VERSIONS:  dBASE II, IBM PC format
  9.  
  10. FUNCTION: This routine allows you to toggle output between LPT1
  11. and LPT2 allowing access to two printers through dBASE II.
  12.  
  13. FILES NEEDED: Portswap.ASM
  14.  
  15. SETUP INSTRUCTIONS: To run this program, POKE or LOAD it into
  16. memory, and then CALL it.  The default printer port is LPT1.
  17. When redirecting to LPT2, be sure to restore LPT1 after the print
  18. run is finished.
  19. For example:
  20.     
  21.     * ---LOAD or POKE into memory.
  22.     LOAD Portswap
  23.     SET CALL TO 64000
  24.  
  25.     * ---Print a statement through to the default port, LPT1.
  26.     DO Statement    
  27.  
  28.     * ---Print a private insurance superbill through LPT2.
  29.     CALL <---------------------------- Redirect to LPT2.
  30.     DO PrivIns
  31.     CALL <---------------------------- Restore LPT1.
  32.  
  33.  
  34.  
  35. POKE Sequence:
  36.  
  37. POKE 64000,  6, 80, 83, 87,184, 64,  0, 80,  7, 191,;
  38.              8,  0, 38,139,  5, 71, 71, 38,139,  29,;
  39.             38,137, 5, 79,  79, 38,137, 29,95,91,88,;
  40.              7,195
  41.