home *** CD-ROM | disk | FTP | other *** search
/ Phoenix CD 2.0 / Phoenix_CD.cdr / 24b / prnswap.zip / PRNSWAP.DOC
Text File  |  1988-05-24  |  640b  |  24 lines

  1. The following is the DEBUG code to generate your own PRNSWAP.COM.
  2. I got it from PC Magazine, page 404 in the May 12, 87 issue, and
  3. as corrected on page 486 in their July, 87 issue.   Entering
  4. PRNSWAP toggles output between LPT1 and LPT2.   I have been
  5. using it since then to redirect, for example, printscreen output
  6. from my dot matrix on LPT1 to my daisy wheel on LPT2.
  7.  
  8.     N PRNSWAP.COM
  9.     A
  10.     POP DS
  11.     MOV AX,[408]
  12.     XCHG AX,[40A]
  13.     MOV [408],AX
  14.     INT 20
  15.  
  16.     R CX
  17.     D
  18.     W
  19.     Q
  20.  
  21. Make sure to include the blank line after the INT 20 line.
  22.  
  23. John Windhorst  5/24/88
  24.