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 / WS33-B.DRV < prev    next >
Text File  |  2000-06-30  |  2KB  |  50 lines

  1. FILE: WS33-B.DRV       Wordstar 3.3 Patch to change logged drive to B:
  2.  
  3.      This short note describes a simple patch to WordStar
  4. which will cause WS to automatically log in the B: drive
  5. when WS is initially booted up.
  6.  
  7.      To implement this patch you will require DDT and a
  8. scratch copy of WS to work with.  Using DDT do the following:
  9.  
  10.  
  11.     A>DDT WS.COM <cr>
  12.       4300 0100        (DDT reports last PC at 4300H)
  13.  
  14. (Change the initial jump at 0100 to jump to the patch.)
  15.  
  16.       -s0101h        (Set location 0101H)
  17.        FC F6    <cr>    (change from FC to F6)
  18.        2C 02    <cr>    (change from 2C to 02) I.E JMP 02F6H
  19.           .     <cr>    (stop changes at this point with a period)
  20.  
  21.       -A02F6    <cr>    (Assemble new code at 02F6H)
  22. (Added code in [], do not type []s, or after ";")
  23.        0350     [MVI C,0E]    ;select disk- BDOS function number 14
  24.        0352     [MVI E,01]    ;DRIVE; A=00,B=01,C=02,D=03
  25.        0354     [CALL 0005] ;CALL BDOS, HAVE CPM DO IT.
  26.        0356     [JMP  2CFC]  OLD JUMP RESTORED, no H after value!
  27.        0359  .  <cr>    (stop code addition with a period)
  28.       -g0        <cr>    (Exit DDT) actually go to 0000, warm boot
  29.  
  30.     A>SAVE 66 WS.COM    (Save 66 pages of WS,
  31.                 add drive letter and : as needed.
  32.                 you are doing this on a test disk, right?)
  33.  
  34.      You can rename the new file if you desire.  If you have not
  35. made any extensions to WS which increased the file size, then the
  36. SAVE 66 is appropriate.  However, be sure to save the number of
  37. pages indicated by the Last PC count reported by DDT.  See
  38. Thom Hogans manual on CP/M, if you aren't familiar with calcu-
  39. lating the number of pages to save.
  40.  
  41.      I have placed the new code in a region of MORPAT, a free
  42. patch area made available in WS.  I have started my code at
  43. 02F6H.    If this area isn't available, then find an area in
  44. MORPAT where you have 10 bytes for the new code.
  45.  
  46.      Any problems, report to:
  47.  
  48. WS VERSION 3.0      Steven Kapplin [70055,1021] CPM SIG
  49. WS VERSION 3.3      Tom Smith     [71555,1441] EMAIL
  50.