home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / a / cpzspa.doc < prev    next >
Text File  |  2020-01-01  |  4KB  |  93 lines

  1. .pl66
  2.                       Tabspace utility for 
  3.                CP/M-80 Kermit (Kermit-80) support.
  4.  
  5. I have written this utilty simply to help me.  No other excuses.
  6.  
  7. I am forever getting updates or new systems to add to the CP/M-80 
  8. version of Kermit (Kermit-80) from folk who send me these updates 
  9. via  Electronic  Mail.   I  am thankful that it is already  in  a 
  10. machine readable form.
  11.  
  12. However,  our  Mutton-head  mainframe substitutes a single  space 
  13. character  for every tab character it receives,  so a lot of  the 
  14. submissions  need  considerable massaging before I  can  actually 
  15. merge these additions to the rest of Kermit-80.
  16.  
  17. Therefore,  I issued Kermit-80 with all tabs replaced by  spaces, 
  18. in  the  hope that any further doantions have spaces  instead  of 
  19. tabs.   Unfortunately,  this  does  not  work  in  practice,  and 
  20. everyone is complaining about the size of the source files (often 
  21. as  much  as  30% larger as a single tab character is now  up  to 
  22. eight space characters!)
  23.  
  24. So  I wrote this program in the hope that people submitting stuff 
  25. to  me run their sources through this de-tabber to make  my  life 
  26. easier.
  27.  
  28. As  a bonus,  TABSAPACE will do the reverse,  and replace  spaces 
  29. with tabs.  With a couple of exceptions...  (See below)
  30.  
  31. To  run  the  program,  type TABSPACE and wait  for  the  sign-on 
  32. message   ("Tabspace loaded,  Version 1 22-Jan-87"   for the time 
  33. being).  Tabspace will ask for the filename to be "massaged", and 
  34. whether  you  want  to expand or compress  files  (ie  substitute 
  35. spaces for tabs, or tabs for spaces respectively).  
  36.  
  37. Once  started,  it will plough through the file specified (if  it 
  38. exists)  and apply the tabs/spaces replacement as  required.   It 
  39. will also strip out any parity bits.
  40.  
  41. Tabspace  actually opens two files when it works:  one input file 
  42. of  the  type <filename>.<extention> as specified  by  you.   The 
  43. second is the same <filename> but with a $$$ extention.
  44.  
  45. Once  the  file  has been massaged,  the original  file  will  be 
  46. deleted,  and the .$$$ file renamed to your original file.   This 
  47. should  be relatively safe,  as you will not get to the stage  of 
  48. delete  and  rename  if  you  have disk  space  or  file  closing 
  49. problem.   However, I suggest you try applying Tabspace to COPIES 
  50. of your software!
  51.  
  52. Couple of other points:
  53. Tabspace   uses  memory  to  buffer  several  logical  128   byte 
  54. "sectors",  both on read and writing.   An equate for MAXRAM sets 
  55. the maximum amount of memory available to Tabspace after CP/M and 
  56. Tabspace itself have nabbed their memory,  and is initally set to 
  57. 16  Kbytes.   (I reasoned that if you are going to run  Kermit-80 
  58. version  4.08  or later you should have at least this  amount  of 
  59. free  memory!)  If you have more memory,  you can adjust this  to 
  60. some larger value,  say 52 for a 62k system (ie 62K - 8k (CP/M) - 
  61. 2k (Tabspace) = 52k)
  62.  
  63. I used the Public Domain assembler LASM to assemble  Tabspace;  I 
  64. have no idea if any other assembles will work.   Anyway,  LASM is 
  65. the ONLY assembler now used for Kermit-80 assembly.
  66.  
  67. Tabspace  will expand tabs after a semicolon in a comment  field, 
  68. but will not replace tabs for multiple spaces after a  semicolon.  
  69. I ran into som real problems early on, and decided that spaces in 
  70. comment fields would be ok, so I left it in.
  71.  
  72. Any  comments  or  contributions for  Tabspace  and/or  Kermit-80 
  73. please send them to me (with tabs expanded!) as:
  74.  
  75.  
  76. OBSchou @ UK.AC.LOUGHBOROUGH.MULTICS                   or
  77.  
  78. Kermit @ UK.AC.LOUGHBOROUGH.MULTICS                    or
  79.  
  80. Bertil Schou,
  81. The Computer Centre,
  82. Loughborough Universirty of Technology,
  83. Loughborough,
  84. Leics. LE11 3TU                                        or
  85.  
  86. + 509 -222313 (Direct Dial)
  87.  
  88.  
  89.  
  90. Many thanks for your co-operation,  
  91.  
  92. Bertil Schou.
  93.