home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / lambda / soundpot / p / px8dir.lbr / PFDIR.DZC / PFDIR.DOC
Encoding:
Text File  |  1993-10-25  |  8.0 KB  |  139 lines

  1.  
  2.         PFDIR, A DIRECTORY PROGRAM FOR USE WITH WORDSTAR
  3.                        AND OTHER SOFTWARE
  4.  
  5.                            BY: Mr Bob
  6.                             12/24/85
  7.  
  8.  
  9.      One of Murphy's Bylaws says,  "The most critical information 
  10. required  will be lost or forgotten."  Sometimes I find myself  a 
  11. victim  of  that  very  rule,  or at least  it  seems  that  way.  
  12. Consider  running WordStar on the Epson Geneva PX-8,  most people 
  13. I've talked to,  like the version of WordStar on the PX;  however 
  14. most wish that this version offered a directory function like the 
  15. desk  top  version does.   Don't get me  wrong,  I  believe  that 
  16. Micropro did an outstanding job of making WordStar work with only 
  17. 32K  of code,  it's just too bad that there wasn't a little extra 
  18. room  for a directory function.   However there are solutions  to 
  19. the problem.   One solution wrote the directory to the disk as  a 
  20. file that could be merged into the current work area.  Once read, 
  21. the  directory lines are deleted.   This solution works,  but  is 
  22. somewhat klutzy.  Another solution is a patch program that is run 
  23. before WordStar.   The patch program loads WordStar in, changes a 
  24. few  pointers  within  it,  and  adds the code  for  a  directory 
  25. function.   This solution is a much better one, but won't work if 
  26. a  user  runs WordStar without going through the  patch  program.  
  27. Giver the fact that WordStar isn't the only program that does not 
  28. offer  a  directory  function,   a  more  universal  solution  is 
  29. required.  PFDIR is the answer to this problem.
  30.  
  31.      Once PFDIR is loaded and enabled,  seeing a directory of all 
  32. your files is as easy as pressing CTRL-PF1.   The nice part about 
  33. this  is  the fact that you can see the directory at  almost  any 
  34. time without messing up what you've done.   For example,  you can 
  35. be  in the middle of typing a command line in  CP/M,  press  PF1, 
  36. view the directory,  and return to typing the rest of the command 
  37. line without problems.  Also a directory can be seen at any point 
  38. while running WordStar.
  39.  
  40.      The  directory  that's displayed provides  more  information 
  41. than the standard DIR command of CP/M.  The standard command just 
  42. provides the filenames and their extensions.  PFDIR provides that 
  43. and  more.   It also displays the size of the file in K bytes and 
  44. the free space remaining in K bytes.   Both pieces of information 
  45. are helpful when you are writing a paper in WordStar and your RAM 
  46. Disk is running out of space.   The first piece lets you know how 
  47. much space a given file requires if you chose to delete said file 
  48. in order to free up space for your paper.  The other piece serves 
  49. a warning to let you know how much free space is left.
  50.  
  51.      There  are a few limits to this program;  however  most  are 
  52. minor.   First,  the  directory  program can not be run from  the 
  53. Password,  Menu, System, Alarm, or Wake Screens.  A trap is built 
  54. into the program to prevent the user from crashing the system  by 
  55. getting a directory while in any of those screens.   Second,  the 
  56. program is placed into the User BIOS Area.   Thus,  the Scheduler 
  57. Program  must not be used because it would overwrite the program.  
  58. In fact any program that writes into the User BIOS Area can't  be 
  59. used.   Scheduler  is  the only program I know of that uses  that 
  60. area,  so  this limit may not be too  bad.   Third,  the  program 
  61. requires  2  pages  (512 bytes) of User Bios  Area.   This  won't 
  62. present  much  of a problem if your system has  an  external  RAM 
  63. Disk,  but if your system uses the internal RAM Disk, the 2 pages 
  64. of  User  BIOS  Space required,  causes your RAM Disk  to  be  1K 
  65. smaller in size.  Therefore a 24K RAM Disk could be only 23K with 
  66. PFDIR installed.  Another limit is that this program runs only on 
  67. the  new  version of the CP/M Operating System.   The reason  for 
  68. this  limit is because in order to perform some of  the  required 
  69. functions, direct calls to the OS ROM were required.  While it is 
  70. possible  to perform the same direct calls on the old version  of 
  71. CP/M, the number of machines that have the old OS ROM aren't that 
  72. many  in number and besides,  machines that have the old  version 
  73. ROM  should  have  been  (or can still be) upgraded  to  the  new 
  74. version ROM.   Last of all, version 1 of PFDIR reads the files on 
  75. drive A:  only.   I hope to expand this program later and offer a 
  76. directory  of any drive,  but for now the program was kept  small 
  77. and  simple.   For those of you who work only from the RAM  Disk, 
  78. drive  A:,  this won't be much of a limit.   Others who use the 3 
  79. 1/2 inch Disk Drive,  will have to wait for an expanded  version.  
  80. Both Source and Object code to this program are public domain, so 
  81. anyone who would like to take a shot at improving the program are 
  82. welcome to do so.
  83.  
  84. INSTALLING PFDIR:
  85.  
  86.      Installing PFDIR is easy,  the program has several built  in 
  87. tests  to prevent a user from crashing his or her machine due  to 
  88. incorrect  setup.   For  example,  the first part of the  program 
  89. displays  a  opening message that explains what  the  program  is 
  90. designed  to do.   Pressing the red STOP Key or CTRL-C aborts the 
  91. program at any time.   Pressing the RETURN Key causes the program 
  92. to  continue.   Next  the program tests the OS  ROM  within  your 
  93. Geneva  to see if it has the correct version.   If your PX-8  has 
  94. the  old  version  OS ROM,  the program warns you that  it  can't 
  95. continue running because your system has the old version ROM.  If 
  96. your system has the new version ROM,  the programs tells you that 
  97. you have the correct version of the OS.
  98.  
  99.      Next a the program runs a test for a header in the User BIOS 
  100. Area.   If  the program finds,  "UB" or "US" in locations  $EBF0-
  101. $EBF1, it assumes that a valid header for User BIOS exists.  (For 
  102. additional information on the User BIOS header,  please see pages 
  103. 17-21 of PX-8 SYSTEM ESSENTIALS.  This technical manual should be 
  104. available  from  your Geneva dealer.)  Should  a  correct  header 
  105. exist,  the name of the current routine is displayed.  Currently, 
  106. I  think this is the only program using this header format,  thus 
  107. the  routine name won't be displayed unless you run  the  program 
  108. twice.   Pressing  the return key at this point will disable  the 
  109. program  within the User BIOS Area (if possible).   Pressing  the 
  110. STOP key aborts the program.
  111.  
  112.      After  that,  the program looks at the size of the User BIOS 
  113. Area.  If this area is NOT 2 pages in size, the program warns you 
  114. that  it  can't  continue because the User BIOS  Area  isn't  the 
  115. correct size.   Should that happen, just run CONFIG to change the 
  116. size  of the User BIOS Area to 2 pages.   A few words of  warning 
  117. BEFORE changing the size of the User BIOS Area:   If the size  of 
  118. the User BIOS Area is 0 pages,  there is nothing stored there and 
  119. no  need  to  worry about overwriting anything;  however  if  the 
  120. number  is  anything greater than 0,  data or a  program  may  be 
  121. stored in this area.   More than likely it's the data is from the 
  122. SCHEDULER  Program.   If  you don't care if this data is  erased, 
  123. just  exit the CONFIG program and press the RESET button  on  the 
  124. left  side  of the Geneva.   Pressing RESET undoes any  hooks  or 
  125. changes  that SCHEDULER might have made to upper RAM.   Those  of 
  126. you  who have an internal RAM Disk set to 24K,  won't be able  to 
  127. select  a User BIOS Size of 2 pages,  until the RAM Disk Size  is 
  128. dropped  to 23K.   Before you change the RAM Disk Size,  save all 
  129. the  files  you wish to keep to tape (or Disk if you  have  one), 
  130. then you can change the RAM Disk Size.
  131.  
  132.      Once  the  User BIOS Area is 2 pages in  size,  the  program 
  133. tells you that it's ready to load itself into the User BIOS Area.  
  134. If for some reason you don't want this to happen,  just press the 
  135. RED STOP KEY.   If you want the program to be loaded,  just press 
  136. RETURN.   Once loaded the program is installed and CTRL-PF1  will 
  137. display a directory.
  138.  
  139.