home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpminfo / quikie.hnt < prev    next >
Text File  |  1983-09-09  |  5KB  |  191 lines

  1. QUIKIES
  2.  
  3. Version:  3
  4.  Update:  October 21, 1981
  5.    Home:  HP/RCPM, 312-955-4493, 1am-5pm
  6.  Editor:  Roy Lipscomb, Logic Associates, Chicago
  7.  
  8.  
  9. Permission has been granted to copy any of these
  10. items for non-commercial use, provided each copy
  11. properly credits the sources.  Reproduction for
  12. other uses must receive prior permission from the
  13. individual sources.
  14.  
  15. Comments and contributions are invited, and may be
  16. forwarded to the home system.
  17.  
  18.  
  19.  
  20. 1.--------------------------------------------------
  21. ITEM:  The "re-execute" command.
  22.  
  23. DESCRIPTION:  After exiting to CP/M from a program,
  24. the program may be re-executed without reloading it
  25. into RAM from disk.
  26.  
  27. REQUIREMENTS:  Issue the command SAVE 0 @.COM to
  28. create the null command "@".
  29.  
  30. PROCEDURE:  Issue the null command:  @
  31. This will cause CP/M to load precisely nothing into
  32. the transient program area (thus leaving the old
  33. program intact), then transfer control to the TPA.
  34.  
  35. SOURCE:  (Anyone know?)
  36.  
  37.  
  38.  
  39. 2.--------------------------------------------------
  40. ITEM:  Using the I command of DDT to read files from
  41. disks other than A.
  42.  
  43. PROCEDURE:  Translate the desired drive's name into
  44. its alphabetic sequence number; for instance, "1"
  45. for "A", "2" for "B", and so on.  Then perform the
  46. following sequence of commands to install the file's
  47. name and drive number, and read the file into RAM:
  48.  
  49.      -Ifilenam.typ<cr> (desired file's name)
  50.      -S5C<cr>
  51.      005C 00 x<cr> ("x" = the above sequence number)
  52.      005D yy .<cr> ("yy" = don't care)
  53.      -R
  54.  
  55. SOURCE:  Hal Walchli, Pittsburg Area Computer Club
  56. Newsletter, June 17, 1981.  (Also seen in other
  57. newsletters.)
  58.  
  59.  
  60. 3.--------------------------------------------------
  61. ITEM:  Fix for bug in SUBMIT.COM (2.X only)
  62.  
  63. DESCRIPTION:  SUBMIT will not accept pseudo-control
  64. characters.
  65.  
  66. DIAGNOSIS:  Create a file X.SUB consisting of one
  67. line--
  68.  
  69.      PIP X.SUB=X.SUB[S^Z]
  70.  
  71. where "^" and "Z" are separate characters.  Then
  72. issue the command SUBMIT X.  The faulty version
  73. of SUBMIT will display the message "Error on line
  74. 001 Invalid Control Character," then exit to CP/M.
  75.  
  76. FIX:  Execute the following procedure:
  77.  
  78.      A>DDT SUBMIT.COM<cr>
  79.      DDT VERS 2.2
  80.      NEXT  PC
  81.      0600 0100
  82.      -S442<CR>
  83.      0042 61 41<CR>
  84.      0443 32 .<CR>
  85.      -^C
  86.      A>SAVE 5 SUBMIT.COM<CR>
  87.  
  88. RETEST:  Issue the command SUBMIT X.  No error
  89. should occur, and X.SUB should remain unchanged.
  90.  
  91. SOURCE:  Dave Marschall of AMSI.
  92.  
  93.  
  94. 4.--------------------------------------------------
  95. ITEM:  Comparing two .COM files via DDT.
  96.  
  97. PROCEDURE:  Load one file and dump a stretch of RAM.
  98. Load the second file, and dump the same location.
  99. If both dumps are small enough to fit together on
  100. the screen, the areas can be compared visually.
  101.  
  102. (To perform the actual program loads, use the I and
  103. the R commands.  If either program is not on the
  104. logged-in disk, you can read it by using the pro-
  105. cedure described in item #2 above.)
  106.  
  107. SOURCE:  Hal Walchli, Pittsburg Area Computer Club
  108. Newsletter, June 17, 1981
  109.  
  110.  
  111.  
  112. 5.--------------------------------------------------
  113. ITEM:  Insert any control code into an ED file.
  114.  
  115. DESCRIPTION:  ^C, ^E, ^L, ^P, ^S, ^R, ^U, and ^X
  116. are command codes for ED; when encountered, they
  117. are executed instead of inserted into the file.  It
  118. is possible to have ED insert these codes instead
  119. of executing them.
  120.  
  121. PROCEDURE:  1)  Create CODES.LIB by issuing the
  122. command PIP CODES.LIB=CON: and typing the above
  123. control codes (they will not echo to the screen),
  124. followed by a control-Z.  2)  Whenever you are
  125. in ED now, and wish to insert one of these codes,
  126. read the codes in with the R command (specifi-
  127. cally, RCODES), then use the C and D commands to
  128. remove the unwanted codes.
  129.  
  130. SOURCE:  Roy Lipscomb, Logic Associates
  131.  
  132.  
  133.  
  134. 6.--------------------------------------------------
  135. ITEM:  Counting records in a file.
  136.  
  137. PROCEDURE:  PIP CON:=filename.typ[ND6]
  138.  
  139. EFFECT:     The "virtual" record numbers for
  140. each record will be output to the screen.  The
  141. last number will be the record count of the
  142. file.  (Records are assumed to be terminated
  143. by a carriage return.)
  144.  
  145. EXTENSION:  Instead of CON:, you can substitute any
  146. valid CP/M filename, and the "count up" will
  147. be entered into that file instead.  (Numbers under
  148. 6 digits are preceded by blank fill.)  This type
  149. of file can be useful during program testing.
  150.  
  151. This option reveals a slight anomaly in PIP: if a line
  152. begins with tabs, those tabs will not be deleted
  153. but will be retained and appended to the line number.
  154.  
  155. SOURCE:  Roy Lipscomb, Logic Associates
  156.  
  157.  
  158.  
  159.  
  160. 7.--------------------------------------------------
  161. ITEM:  Execute any commands by pressing only 2 keys.
  162.  
  163. REQUIREMENT:  Public domain program SYNONYM.COM,
  164. version 2 or later, available on various RCPMs.
  165.  
  166. PROCEDURE:  Select an unused alphanumeric, or other
  167. character allowable as part of a file name.
  168. As an example, let's take "A".  Let "command"
  169. be a command-plus-parameters.  Issue this command:
  170.  
  171.         SYNONYM A command
  172.  
  173. Now whenever you wish to execute "command", just
  174. A and carriage return.
  175.  
  176. EXTENSION1:  To create a single name for a sequence
  177. of several commands, 1)  place the commands into a
  178. .SUB file (eg, TESTIT.SUB), and 2) follow the above
  179. procedure to create a name for the command
  180. "SUBMIT TESTIT".
  181.  
  182. EXTENSION2:  Better yet, use /.COM or SUPERSUB.COM
  183. to eliminate the need for a separate .SUB file.
  184. That way, all the commands to be executed can be
  185. coded as part of "command" above.
  186.  
  187. SOURCE:  Roy Lipscomb, Logic Associates
  188.  
  189.  
  190.  
  191.