home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / lambda / soundpot / p / patch18a.lbr / PATCH.DZC / PATCH.DOC
Encoding:
Text File  |  1993-10-25  |  14.9 KB  |  329 lines

  1. .mb 7
  2. ***********************************************************************
  3. *                                       *
  4. *            PATCH 1.8 DOCUMENTATION                *
  5. *                                       *
  6. ************************************************************************
  7.  
  8.       PATCH.COM is copyrighted by Bill Rink, San Jose, Ca.
  9. TURBO PASCAL is copyrighted by Borland International, Scotts Valley, Ca.
  10.  
  11.    Note: This was compiled with a Z80 version TURBO PASCAL compiler.
  12.  
  13.       ** TERMINAL INSTALLATION PROGRAM NOW INCLUDED **
  14.  
  15.          (SEE BELOW FOR INSTALLATION INSTRUCTIONS)
  16.  
  17. ------------------------------------------------------------------------
  18.             Record of Revisions
  19. ------------------------------------------------------------------------
  20. Release date May 5, 1985 PATCH 1.8
  21. 1. Fixed a bug in the directory procedure. Also, scans all users files
  22.    in sequence.
  23. 2. Added a CP/M status routine to display various parameters about your
  24.    system.
  25. 3. Changed DISPLAY of ASCII files routine so that it is not necessary to
  26.    have a DELINE function in your terminal, also updates screen more
  27.    quickly.
  28.  
  29.  
  30. Release date January 20, 1985 PATCH 1.7 (not released due to DIR bug)
  31. 1. Put the cursor key variable in 1st page of program space so that it
  32.    can be modified for terminal installation.  (See install procedure.)
  33.  
  34.  
  35. Release date December 27, 1984 PATCH 1.6
  36. 1. Fixed bug that limited maximum user number to 9.
  37. 2. You can now search while viewing ASCII files in the alternate DISPLAY
  38.    mode.
  39. 3. When changing DISPLAY modes, the file pointer is decremented so that
  40.    you will reference the same records after the change in mode.
  41. 4. Slight modifications to DOC file to clarify the install procedures.
  42.    12/20/84 Robert Flagg 72466,2332 (for KayPro SIG, Compuserve PCS25)
  43.    KayPro Sig Version includes Kim Levitt's terminal definition file
  44.    (renamed PAT15.DTA) from his LIFE.LBR 11/25/84 courtesy Kim Levitt.
  45.  
  46.  
  47. Release date December 1, 1984 PATCH 1.5
  48. 1. Added the capability to read and write system tracks. Actually any
  49.    track/record on the disk can be modified.
  50. 2. Added an overlay feature to allow the overlaying of a file to any
  51.    track/record on the disk.  The routine performs a two record copy
  52.    at a time and so it is quite slow, but effective.
  53. 3. Corrected some documentation errors in the DOC file.
  54.  
  55.  
  56. Not Released Patch 1.4
  57.  
  58. è.he                                               PATCH18 - Page #
  59. Release Date November 13, 1984 Patch 1.3
  60.  
  61.     I received a phone call from Irv Hoff telling me that
  62.     people were having difficulty running the .COM file,
  63.     most likely because of TPA size differences. Well, as
  64.     it turned out that was the problem. Evidently when
  65.     TURBO PASCAL compiles a program, it records the top
  66.     of the TPA in the file so that upon loading the .COM
  67.     file into memory it sets the program variable space
  68.     at the top of memory. Well, if your running ZCPR3 or
  69.     have a large BIOS, then most likely PATCH was
  70.     stepping all over your CCP and causing untold
  71.     problems. This new version was compiled for a TPA
  72.     size of 48k, top of TPA set to BF00. Thanks to Irv
  73.     Hoff for pointing it out!
  74.  
  75.  
  76. Release Date October 31, 1984 Patch 1.2
  77. 1. Fixed search function to stop after wrapping around to beginning of
  78.    search.
  79. 2. Added tabbing to ASCII display mode (tab size=8).
  80. 3. Quicker disk operations during searches.
  81. 4. Default disk changed when reference is made to a disk in File Name.
  82. 5. Added a WILDCARD to the search routine
  83.  
  84.  
  85. Release Date October 21, 1984 Patch 1.1
  86. 1. Changed Search function to disregard upper/lower case distinction by
  87.    by using a toggle.
  88. 2. Search now begins at current record and wraps around.
  89. 3. Now able to select disks other than default.
  90. 4. Added Display mode that prints ASCII files out in line format for
  91.    better readability.
  92.  
  93.  
  94. First Release Date October 15, 1984 Patch 1.0
  95.  
  96.  
  97. ------------------------------------------------------------------------
  98. PATCH 1.7      (c) Copyright Bill Rink;  1984
  99. ------------------------------------------------------------------------
  100.  
  101. This software is made available to the public domain and may be freely
  102. distributed.  It is not to be sold or used for commercial use under any
  103. circumstances, without the express consent of the author.  I may be con-
  104. tacted by addressing your correspondence to:
  105.  
  106.             William Rink
  107.             PO Box 21447
  108.             San Jose, Ca
  109.             95151-1447
  110.  
  111. ........................................................................
  112. .pa
  113. èPATCH is a file/memory editor that allows for easy access of either in-
  114. dividual records within a file, pages within memory, or individual
  115. records on the disk.  PATCH can operate in one of two modes; accessing
  116. 128 byte records from within the selected file, or 256 byte pages of
  117. processor memory (up to 64k).  Regardless of which mode you are in,
  118. there are 256 bytes of information displayed on the screen.  PATCH works
  119. like a full screen editor when changing hex data.  In addition, it has
  120. search capabilities on any combination of either HEX, DECIMAL, or ASCII
  121. fields that are separated by commas.
  122.  
  123. PATCH is based upon the concept of EDFILE, a program which I have used
  124. extensively and enjoyed tremendously.  My desire was to make an enhanced
  125. version that would be easy to use and more versatile.
  126.  
  127.  
  128.        ****************  INSTALLATION  *********************
  129.  
  130. To install this program, simply execute the PATCHINS.COM program and re-
  131. pond to the prompts.  You MUST have the following files on the same
  132. drive/user area in order to successfully install the program:
  133.  
  134.          1. PATCH.COM
  135.          2. PATCHINS.DTA
  136.          3. PATCHINS.MSG
  137.          4. PATCHINS.COM
  138.  
  139. Please read the INSTALL.DOC file for detail information on how to prop-
  140. erly install PATCH.COM.
  141.  
  142. Make certain that you have the proper information available for answer-
  143. ing the terminal control questions before proceeding with a MANUAL in-
  144. stallation.  By the way, I have noticed that in some cases TURBO PASCAL
  145. actually uses the opposite control characters for REVERSE VIDEO. If your
  146. start-up screen does not have a REVERSE VIDEO boarder around the main
  147. menu, try reversing the definitions for START HIGHLIGHTING and END HIGH-
  148. LIGHTING.
  149.  
  150.  
  151. CURSOR KEY DEFINITION
  152.  
  153. If you would like to customize the cursor movement commands to match
  154. those of your terminal, simply use PATCH to modify the following loca-
  155. tions.    Modify PATCH.COM, not the memory image, as you will experience
  156. problems in trying to modify run-time code on the fly that is referen-
  157. cing these locations each time you enter a key during an edit session.
  158. Values in parenthesis are the current defaults.
  159.  
  160. UP Cursor     0132 hex (10)        Left Cursor  (02)     0138 hex
  161. Down Cursor     0135 hex (0E)        Right Cursor (06)     013B hex
  162.  
  163. You will notice that there are lables to the left of each of these lo-
  164. cations to confirm the data byte being changed.  Sorry, ONLY a single
  165. byte is available for defining the cursor keys as I only read a single
  166. character from the keyboard each time to determine if it is data or a
  167. cursor key.
  168.  
  169. èSTART-UP SCREEN
  170.  
  171. When PATCH is first started it displays a menu of available options.
  172. You'll notice that at this time you can select which disk and user area
  173. is to be used for making changes.  The disk can also be changed once you
  174. are working with disk files by indicating the disk with the file name.
  175.  
  176. You can then choose from viewing/editing records from either a particu-
  177. lar file, disk tracks, or pages from within memory.  Depending on which
  178. mode you enter, you will then have a selection of commands available to
  179. use.
  180.  
  181. COMMANDS
  182.  
  183. You will then be shown a list of commands to use for operating in that
  184. mode.  The command set is more complete when editing files due to the
  185. nature of operation.
  186.  
  187. 'Display'  This will change the display mode for looking at a file.
  188.        If you are looking at a file in the hex/ASCII mode, entering
  189.        a "D" will toggle you into a ASCII line mode in which each
  190.        line is strictly ASCII and is terminated by a CR,LF.  Any
  191.        non-printable characters will be shown as a reverse video
  192.        field to indicate them as such.  Tabs are converted, using
  193.        a tab size of 8.  Binary files that end in .COM are illegal
  194.        to display and you will not be allowed to use this mode.
  195.  
  196. 'Record'   FILE MODE-Enter the record number within the file that you
  197.        wish to access.  This is a DECIMAL record number. The EOF
  198.        record is shown next to the file name.
  199.  
  200.        TRACK MODE-You will be asked for the track number and the
  201.        record number. Again these are DECIMAL numbers. The number
  202.        of sectors per track are shown at the top of the screen.
  203.        You will be prompted for either PHYSICAL or LOGICAL record
  204.        numbers, depending on which mode you are in.
  205.  
  206. 'Base'       Allows changing the BASE address used as a reference while
  207.        in a file. The default is 100H.  This is useful when view-
  208.        ing image files of the operating system.  The BASE can be
  209.        changed from anywhere within a file.  The screen that you
  210.        are currently viewing will then be updated.    The BASE can
  211.        be set when you are viewing system tracks to reflect the ac-
  212.        tual memory locations that the operating system would reside
  213.        in.    If you are outside the system tracks, the address refer-
  214.        ences lose their meaning.  BASE is not allowed when viewing
  215.        memory locations.
  216.  
  217. 'Search'   Will prompt you for a search key to be used for scanning re-
  218.        cords or memory.  You may search for any combination of char-
  219.        acter types (hex, decimal, or ASCII).  To denote different
  220.        types, use a prefix before the field.  Use quotes (") at the
  221.        beginning of any ASCII field, a decimal point (.) at the be-
  222.        ginning of a decimal field, and a H at the start of a hex
  223.        field.  If you leave the prefix out, it will be assumed to be
  224.        hex.  Separate each field with a comma.
  225. è
  226.        e.g. "This is ASCII,.1234,0FE1," etc.
  227.  
  228.        Will search for an ASCII string followed by a decimal, hex
  229.        and ASCII field.
  230.  
  231.        When a string is found, it will be reverse highlighted to
  232.        denote it from the rest.
  233.  
  234.        Wildcards are permitted by using an 'X' for a don't care.
  235.        This must be a separate field, delimited by a comma and there
  236.        may be as many X's in the string as you desire.  For example,
  237.        entering a "Bo,X,"t,X  for a search string would locate a
  238.        match for BOATING, BOOTS, or BOTTOM.  Exercise caution, be-
  239.        cause whenever the wildcard(s) are present, any "X" in an
  240.        ASCII string will act as if it were a wild card too.  For ex-
  241.        ample, searching with a string of  "XRAY,X  will locate XRAYS
  242.        as well as GRAYS.
  243.  
  244.        Searches are done on an entire 256 byte buffer and so there
  245.        are times when the target string will cross the boundary be-
  246.        tween two buffers.  When this happens you will be notified
  247.        and the tail end of the string will be highlighted.    Just go
  248.        back one record to access the beginning of the target string.
  249.        (Sometimes more characters are highlighted than necessary
  250.        when a boundary is crossed, do not be concerned..)
  251.  
  252.        You can terminate the search at any time by hitting any char-
  253.        acter on the keyboard.  This is useful if you are searching a
  254.        long file and realize that you entered the wrong key. The re-
  255.        sponse will always be KEY NOT FOUND and you will be returned
  256.        to the record from which the search began.
  257.  
  258. 'Ucase'    When highlighted, it means that when searching for an ASCII
  259.        match, the case of the key and the string matched against
  260.        will NOT matter.  Both the search string and the characters
  261.        searched will be converted to UPPER case for determining a
  262.        match.  If not highlighted, case does matter.  This feature
  263.        can be toggled by entering an "U" command.  If you perform a
  264.        search on a hex, decimal, or ASCII and numerical combination,
  265.        Ucase will toggle to the OFF state i.e., all searches will
  266.        be exact matches if mixed or numeric.
  267.  
  268. 'Cont'       Continues the search for the last string found.
  269.  
  270. 'Address'  Allows a HEX address to be entered for positioning from
  271.        within the file or memory.  This option is not valid when
  272.        in TRACK mode.
  273.  
  274. 'Edit'       Will place the cursor at the top left corner or at the
  275.        begining of the string that was found with a 'Search'.
  276.        Commands will be displayed to indicate how you may move
  277.        the cursor from within the display.    There are two sets
  278.        of commands available, the standard WordStar format and
  279.        one for those who like to use thier right hand.  If you
  280.        have cursor keypad that outputs E2,E4,E6, and E8, then it
  281. è       will work.  (You can use PATCH to change these for your
  282.        particular keypad, just search for them)
  283.  
  284.        To change from the HEX field to the ASCII field, or visa
  285.        versa, enter a ^F.  To quit editing, enter a ^Q.  You will
  286.        then be asked if you wish to WRITE the record or ABORT the
  287.        edit.  Hitting ANY character other than a "W" will abort
  288.        the update.    You will notice that the screen is then re-
  289.        freshed with the current record.  On an EDIT update PATCH
  290.        will write the record and then read it back, displaying the
  291.        changed data on the screen.    If you ABORT, PATCH will read
  292.        the unmodified records and redisplay them.
  293.  
  294. 'Page'       Paging is accomplished by either entering a + or -, or hit-
  295.        ting a RETURN for paging forward.  In TRACK mode, PATCH will
  296.        take you from track to track as you exceed the number of
  297.        records on a track.
  298.  
  299. 'Overlay'  This feature is available when you are in FILE mode only.  By
  300.        selecting it you are asked how many records you would like to
  301.        copy from the file.    Next you are asked if those records
  302.        should be PHYSICAL or LOGICAL.  If you are copying into sys-
  303.        tem tracks you should use PHYSICAL, into another file use
  304.        LOGICAL.  Next you are asked for the destination track and
  305.        record.  Upon completion of this entry you will be told what
  306.        it is about to do.  If you like the parameters, just enter a
  307.        'Y'.  Now PATCH will read two records and copy them to the
  308.        destination, one at a time.    It seems slow, but reliable and
  309.        required little structural changes in the software.
  310.  
  311. 'Log_Sec'  The default mode for accessing TRACKS is in the PHYSICAL
  312.        record mode i.e., each record accessed is physically located
  313.        after the preceeding one.  The system tracks are written this
  314.        way to make booting the operating system simpler.  Once the
  315.        BIOS is in control, all disk accesses are done using LOGICAL
  316.        records and so PATCH will use the disk skewing table in the
  317.        BIOS to compute the PHYSICAL record needed to gain access to
  318.        the desired LOGICAL record.    This mode can be toggled.  When
  319.        in LOG_REC mode you will see both record numbers displayed at
  320.        the top of the screen.
  321.  
  322. To use this program, it is necessary that your terminal have the follow-
  323. ing following screen commands available:
  324.  
  325.         Cursor Addressing
  326.         Reverse Video
  327.         Clear Line
  328.         Clear Screen
  329.  
  330. I think you will find this a powerful PATCH utility and I hope you find
  331. it useful.  Enjoy!
  332.                     Bill Rink  San Jose, California
  333.  
  334.