home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / PROGRAMS / WSTAR / MOREWS4.TXT < prev    next >
Text File  |  2000-06-30  |  5KB  |  111 lines

  1.       10/15/87 -- WORDSTAR 4.0 -- after working with it for a few weeks!
  2.  
  3.     My first impressions were mixed -- the editor had more nice features; but,
  4. the  printer drivers didn't!  WS4 refused to default to ".LQ OFF" and  printer
  5. redirection appeared to be a 128 byte patch area with scanty documentation.
  6.     I got a call from MicroPro a couple of days ago to inform me that WSCHANGE
  7. had  a "bug" in it and that the ".LQ" and ".BP" flags had switched places.   A
  8. little further checking showed me that WSCHANGE program and the PATCH.LST file
  9. both  agreed but WS4 was looking in the wrong place!  (Or maybe WS4 knew  what
  10. it was looking for, but nobody else did)  Anyhow; in the WS.COM file the ".LQ"
  11. toggle    really    lives at 0812H and ".BP" at 0813H (switch those  addresses  in
  12. your  PATCH.LST  file).  And, when using WSCHANGE, ".BP" is really  ".LQ"  and
  13. vice  versa.   I still haven't figured out why the auto page  numbers  at  the
  14. bottom of the page sometimes are it the opposite .LQ mode than the body of the
  15. text!
  16.     My    second    problem  was  that I have  an  Olivetti  PRAXIS  serial  input
  17. typewriter that I use as my daisy wheel printer.  I am using an MSC-ICO  C/PM+
  18. computer board, and with WS 3.3 I would exit WS and use DEVICE to redirect the
  19. LST:  output  to  a  serial port and then go back  into  WS  and  print.   WS4
  20. suggested that printer output redirection could be done from within WS4.   For
  21. my C/PM+, at least, that means here's a 128 byte patch area -- go for it!   So
  22. I  did.  I spent an hour or so using SID to find the SCB byte in  high    memory
  23. that  redirected  the  LST: output and the values for the  devices  my    system
  24. supports.
  25.     Following is my assembly language solution:
  26.  
  27. ;--------------------------------------------------------------------------
  28. ;ULPORT.MAC
  29.  
  30.     .Z80
  31.  
  32. ;"ULPORT" SUBROUTINE COMPARES WS4 PRINTER DRIVER TO "PRAXIS,0" DRIVER NAME,
  33. ;IF A MATCH IS FOUND THEN LOAD "RS2" (08H) USING "OUTRS2" TO SCB AND RETURN,
  34. ;ELSE THEN LOAD "CEN" (40H) USING "OUTCEN" TO SCB AND RETURN,
  35. ;IF "PRAXIS" IS USED TO PRINT THEN USE "RETCEN" TO LOAD "CEN" TO
  36. ;REINITIALIZE SYSTEM "LST:" OUTPUT
  37. ;
  38. ;THIS OUTPUT REDIRECTION IS FOR USE ON AN MSC-ICO Z-80 COMPUTER BOARD
  39. ;FOR WHICH THE SECOND SERIAL PORT (RS2) HAS BEEN INITIALIZED TO 300 BAUD,
  40. ;8 BIT WORD, 2 BIT STOP AND NO PARITY FOR MY OLIVETTI PRAXIX P-41 TYPEWRITER
  41. ;BY REWRITING "CPM3.SYS" (CPM3.SYS HAS ALSO BEEN CHANGED TO DEFAULT TO
  42. ;1200 BAUD FOR THE FIRST SERIAL PORT -- SO THERE IS NO NEED TO RUN "DEVICE"
  43. ;IN "PROFILE.SUB" TO SET UP THE SYSTEM)
  44.  
  45.  
  46. SCBLST    EQU 0F5C7H    ;SYSTEM CONTROL BLOCK LST: REDIRECTION VECTOR ADDRESS
  47.             ;THIS JRDII'S CP/M+ --- SO DON'T HOLD YOUR BREATH!!
  48. CEN    EQU 40H     ;LST: VALUE FOR SCB CENTRONICS REDIRECTION
  49. RS2    EQU 08H     ;LST: VALUE FOR SCB 2ND SERIAL PORT REDIRECTION
  50.  
  51.     ASEG        ;ABSOLUTE TO GET THE ADDRESSES
  52. ULPORT: ORG    063BH    ;WS4 "PRNPAT" BEGINNING ULPORT:: CALLS THIS
  53.     PUSH    AF
  54.     PUSH    BC
  55.     PUSH    DE
  56. START:    LD    DE,DRIVER
  57. NEXT:    LD    A,(DE)
  58.     CP    (HL)
  59.     JR    NZ,OUTCEN
  60.     CP    0
  61.     JR    Z,OUTRS2
  62.     INC    DE
  63.     INC    HL
  64.     JR    NEXT
  65.  
  66. OUTRS2: LD    A,RS2
  67.     LD    (SCBLST),A
  68.     POP    DE
  69.     POP    BC
  70.     POP    AF
  71.     RET
  72.  
  73. RETCEN: PUSH    AF   ;ULUNPT:: CALLS THIS
  74.     PUSH    BC
  75.     PUSH    DE
  76. OUTCEN: LD    A,CEN
  77.     LD    (SCBLST),A
  78.     POP    DE
  79.     POP    BC
  80.     POP    AF
  81.     RET
  82.  
  83. DRIVER: DEFM  'PRAXIS',00
  84.  
  85.     END
  86. ;--------------------------------------------------------------------------
  87.  
  88.     The  ULPORT::  patch address should "CALL 06B3H" (PRNPAT::)  and  ULUNPT::
  89. should "CALL" the address that RETCEN: assembles to on your system.
  90.     I  have  learned to routinely use many of the "new" features,  although  I
  91. have not had a chance to use them all, and have usually been sucessful.  Print
  92. time  formatting (.PF) looks like it could be a super tool.  My wife writes  a
  93. lot  of  documets that will be printed single spaced, but she likes  to  proof
  94. then  on a double spaced draft print.  Simple, just put ".PF" and ".LS    2"  at
  95. the  top of the document before it is printed (comment out the ".LS  2"  while
  96. editing).   This idea sort of works, the document prints double  spaced;  BUT,
  97. WS4 will not recognize the ".LM x" commands she has put in the text to    indent
  98. paragraphs and phrases.  WS4 blithly prints using the page setup defaults  and
  99. everything comes out printed flush left -- I don't know whether the problem is
  100. mine or WORDSTAR's!
  101.     The  new  dictionary supplied with THE WORD PLUS is larger;  however,  its
  102. vocabulary for "real writers" has diminished while its knowledge of words used
  103. by  "computer review writers" has been enhanced.  No thanks, I'll stick to  my
  104. old KAYPRO version!
  105.     Except  for the few problems that I have run into, I've been pretty  happy
  106. with  WS4.   Some  of the features that are on the  IBM-PC  version  (such  as
  107. selective  page printing) would be nice, but probably make it even more  of  a
  108. memory    hog and slower yet.  There are still some serious "bugs" to be    worked
  109. out yet, and I hope the solutions will be coming from MicroPro.
  110.  
  111.