home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / znode3 / editors / ws4zcpr3.fix < prev    next >
Encoding:
Text File  |  1993-06-08  |  2.0 KB  |  50 lines

  1. Using WordStar v4 on a Kaypro 10 with TurboRom v3.4 and ZCPR33, I
  2. occasionally had a problem of WS not finding its overlay or a
  3. BDOS error on a non-existent drive.
  4.    
  5. The problems occurred when logged on to a different user number
  6. than WS was on (the disk made no difference).  Sometimes there
  7. would not be a problem, and sometimes there was - depending on
  8. which program was run previously (if VEDIT PLUS, WS would NOT
  9. work - if SHOW, WS would work).
  10.   
  11. Upon much investigation, it was found that WS uses memory bytes
  12. 02201H and 02202H in some manner to find its overlay and other
  13. things.  BUT these two bytes are not cleared by the WS I have,
  14. but are manipulated in some manner.
  15.   
  16. If memory byte 02201H has the most significant bit set from a
  17. previous program and memory byte 02202H has an acceptable value,
  18. WS will not find its overlay the first time run, but since it
  19. clears that bit when run, it will work fine if run again.
  20.   
  21. If memory byte 02202H has bit 4 set and bit 3 cleared from a
  22. previous program and memory byte 02201H has an acceptable value,
  23. a BDOS error on a non-existent drive occurs.
  24.    
  25. If memory bytes 02201H and 02202H are poked with 0 before running
  26. WS the program appears to work every time.
  27.    
  28. Since WS does start to run, a patch to an internal initialization
  29. routine can also be used to fill the two memory bytes with zeros
  30. either by using WSCHANGE or direct patching.
  31.    
  32. If the user patchable initialization is not being used, run
  33. WSCHANGE, go to selection "E Patching" of the main menu.  Enter
  34. "=" and "INISUB", then enter C3 5B 04.  Return to patch menu
  35. enter "=" and "MORPAT", then enter 21 00 00 22 01 22 C9, and exit
  36. saving patches.
  37.    
  38. That is:
  39.      03BB           INISUB::
  40.      03BB C3 5B 04            JP   045B
  41.   
  42.      045B           MORPAT::
  43.      045B 21 00 00            LD   HL,0
  44.      045E 22 01 22            LD   (02201H),HL
  45.      0461 C9                  RET
  46.   
  47.  
  48. Originally posted on Lillipute #1 3/5/88 msg #7000 by Ernie Barnhart
  49.   
  50.