home *** CD-ROM | disk | FTP | other *** search
/ Ahoy 1986 November / Ahoy_Magazine_86-11_1986_Double_L.d64 / editor-part2.txt < prev    next >
Text File  |  2022-10-26  |  5KB  |  223 lines

  1. DISK EDITOR COMMENTS
  2. by Phyrne Bacon
  3.  
  4. Disk'editor can be used with a 1541
  5. or MSD disk drive to edit any sector
  6. of any track on a formatted disk.
  7.  
  8. Disk'editor can be used to unscratch
  9. files, to recover from an accidental
  10. short new (pass"n0:name" without id),
  11. or to do any other disk editing
  12. function.
  13.  
  14. GETTING STARTED
  15.  
  16. Before using disk'editor, make a
  17. backup copy of the disk. If anything
  18. on track 18 is changed, validate the
  19. disk afterwards:
  20.  
  21. Type: pass"v0"
  22.  
  23. LOADING THE FIRST SECTOR
  24.  
  25. You will be asked to enter the
  26. decimal track and sector numbers.
  27. That block will be loaded from the
  28. disk.
  29.  
  30. After a sector has been loaded from
  31. the disk, the decimal track and
  32. sector numbers and first half appear
  33. near the top of the screen. The 128
  34. bytes of the half-block are divided
  35. into 8 columns and 16 rows. The data
  36. for the first half-sector
  37. (half-block) appears below in two
  38. forms. Each byte is given in hex on
  39. the left and a character on the
  40. right.
  41.  
  42. The byte 65 (in decimal) would appear
  43. as 41 (in hex) on the left and a on
  44. the right. Many bytes, 0 for example,
  45. are not used to represent letters or
  46. numbers, and are represented on the
  47. right by . (period). The byte 160
  48. (shift-space) is used to fill out all
  49. disk directory filenames to sixteen
  50. bytes. It is represented on the left
  51. by a0 and on the right by +.
  52.  
  53. I. EDITING
  54.  
  55. INFORMATION (i)
  56.  
  57. Whenever a half-block is displayed on
  58. the data screen, you can see the info
  59. (help) screen by pressing i. The info
  60. screen lists all the disk'editor
  61. commands. Press any key to return to
  62. the data screen.
  63.  
  64. THE CURSORS
  65.  
  66. There are two cursors which move
  67. together. The cursor on the left is
  68. on the hex byte (the corresponding
  69. decimal appears above). The cursor on
  70. the right is on the corresponding
  71. character. The position of the byte
  72. the cursor is on also appears above.
  73. The position number ranges from 0 to
  74. 255.
  75.  
  76. Use the cursor keys to move the
  77. cursors. They wrap: when they go over
  78. the top edge they appear on the
  79. bottom row; when they go over the
  80. right edge, they appear in the left
  81. column; etc. Press the <home> key to
  82. return the cursors to the upper
  83. left-hand corner.
  84.  
  85. SWITCHING HALF BLOCKS (h)
  86.  
  87. To change from the first half-block
  88. to the second half, press h. To
  89. switch back, press h again.
  90.  
  91. ENTERING HEX
  92.  
  93. To change a byte by entering a hex
  94. number, move the cursor to the byte
  95. and type the hex number. If you type
  96. the first digit incorrectly, press an
  97. illegal character such as x to keep
  98. the byte unchanged. To enter a hex
  99. number you must type both digits.
  100. Example: type 0d for a carriage
  101. return.
  102.  
  103. ENTERING DECIMAL (n)
  104.  
  105. To enter a decimal number, press n,
  106. enter the number, and press <RETURN>.
  107.  
  108. TYPING MODE (t)
  109.  
  110. To enter typing mode, press t. Once
  111. you are in typing mode, each key
  112. typed will be entered in the byte
  113. under the cursor, and the cursor will
  114. move to the next byte. The cursor
  115. keys cannot be used in the typing
  116. mode. To exit typing mode, press
  117. <RETURN>.
  118.  
  119. ZEROING A BLOCK (z)
  120.  
  121. To set a block to zero, press z, and
  122. answer y to the question. This will
  123. zero all bytes except for the first
  124. two.
  125.  
  126. II. LOADING AND SAVING
  127.  
  128. LOADING A BLOCK (k or l)
  129.  
  130. To load a block using decimal track
  131. and sector numbers, press l
  132. (lower-case L). To load using hex,
  133. press k. Press <RETURN> after each
  134. number. If you pressed l or k by
  135. mistake, give a false track or sector
  136. number such as 99.
  137.  
  138. RELOADING A BLOCK (r)
  139.  
  140. To reload a block, press r. The block
  141. with the track/sector numbers on the
  142. screen will be reloaded.
  143.  
  144. SAVING A REVISED BLOCK (s)
  145.  
  146. To save a revised block to the same
  147. track/ sector from which it was
  148. loaded, press s. You will be asked if
  149. you are sure. Press y to save the
  150. block.
  151.  
  152. WRITING A NEW BLOCK (v or w)
  153.  
  154. To save a block to a different
  155. track/sector, press w and enter
  156. decimal numbers, or press v and enter
  157. hex numbers. Press <RETURN> after
  158. each number. S, w, or v can be used
  159. to move a block from one disk to
  160. another. If you pressed w or v by
  161. mistake, give a false track or sector
  162. number such as 99.
  163.  
  164. JUMP TO NEXT BLOCK IN FILE (j)
  165.  
  166. To move to the next block in the
  167. file, press j. The first two bytes of
  168. a block give the track/sector of the
  169. next block in the file.
  170.  
  171. NEXT BLOCK ON TRACK (^)
  172.  
  173. To move to the next block on the
  174. track, press the <up-arrow> key.
  175.  
  176. JUMP TO CURSOR BLOCK (u)
  177.  
  178. If a track/sector appears as a pair
  179. of hex numbers on the screen, move
  180. the cursor to the track (the one on
  181. the left) and press u. The block will
  182. be loaded and the first half will
  183. appear on the screen.
  184.  
  185. PREVIOUS BLOCK (p)
  186.  
  187. To move to the block loaded previous
  188. to the one on the screen, press p.
  189.  
  190. III. AFTERWARDS
  191.  
  192. EXIT (x)
  193.  
  194. To exit, press x.
  195.  
  196. VALIDATING THE DISK
  197.  
  198. Any time the disk directory is
  199. edited, update the BAM (Block
  200. Availability Map).
  201.  
  202. Type: pass "v0"
  203.  
  204. Then, to check the disk directory
  205. type:
  206.  
  207. cat
  208.  
  209. This program is on Today Disk #13.
  210.  
  211. Further Reference:
  212.  
  213. Inside Commodore Dos by R. Immers and
  214.    G. Neufeld
  215. Fix Disk Errors, COMAL Today #11,
  216.    page 16
  217. Directory Editor, COMAL Today #8,
  218.    page 55
  219. Disk Editor, COMAL Today #7, page 56
  220. Disk Editor, COMAL Today #5, page 45
  221. Disk Directory Manipulator, COMAL
  222.    Today #3, page 6
  223.