home *** CD-ROM | disk | FTP | other *** search
/ Commodore 64 Scene Diskmags Assortment / Escape_1_Nov._Edition_1989-11-18_-.d64 / ae < prev    next >
Text File  |  2023-02-26  |  6KB  |  258 lines

  1.         
  2. T R A C K   1 8  
  3. **************** 
  4.  
  5.  
  6. Track 18 is for Commodore 1540/1541
  7. diskdrive users a very interesting
  8. track.
  9. In this track all the important data
  10. are stored which are used by the drive
  11. for reading or writing files to the 
  12. disk.
  13. For example in track 18 are stored
  14. the BAM (which registrates the free
  15. blocks !!!) and the DIRECTORY !!!
  16. It is possible to manipulate this 
  17. track trough which you can get special
  18. effects !!!!
  19.  
  20.  
  21.  
  22. It's important to know that each 
  23. track, and there are 35, has been
  24. seperated in some sectors.
  25. Every sector exists of 256 bytes.
  26. Byte 0 en 1 are used by the drive.
  27. Bytes 2-255 are free for data.
  28. In fact there are some extra bytes
  29. for example : the checksum ..
  30. But we won't bother you with that !!!
  31. Track 18 has got 19 sectors, numbered
  32. from 0 up to 18. They are used like 
  33. this : 
  34.  
  35. Track 18 Sector 0
  36. BAM & Directory Header.
  37.  
  38.  
  39.      -->
  40.  
  41.  
  42. Byte(s)  contains description
  43. *****************************
  44. 0-1      18-01    Track, sector of the
  45.                   the following block.
  46. 2        65       A, the format (4040)
  47. 3        0        Future expansion
  48. 4-143    ?        BAM, keeps a record
  49.                   of used/free blocks
  50. 144-161  ?        Disk name (16 char.)
  51.                   filled up with shift-
  52.                   space.
  53. 162-163  ?        Diskette ID (2 pos.)
  54. 164      160      Shift-Space
  55. 165-166  50,65    2A, DOS version
  56. 167-170  160      Shift-Space
  57. 171-255  0        Unused
  58.  
  59.  
  60.  
  61.  
  62. Track 18 Sector 1 to 18. the Directory.
  63. ***************************************
  64.  
  65. Byte(s)  contains description.
  66. ******************************
  67. 0-1      18-?     Track and sector
  68.                   following block.
  69. 2-31     ?        File name 1
  70. 34-63    ?        File name 2
  71. 66-95    ?        File name 3
  72. 98-127   ?        File name 4
  73. 130-159  ?        File name 5
  74. 162-191  ?        File name 6
  75. 194-223  ?        File name 7
  76. 226-255  ?        File name 8
  77.  
  78.  
  79.  
  80.  
  81.  
  82. So, there are 18 blocks and in all
  83. of them can be stored 8 filenames.
  84. 18 times 8 makes 144 files.
  85. The missing bytes are not used.
  86. Every group of 30 bytes are organised
  87. like this : 
  88.  
  89. Byte(s)  contains description
  90. *****************************
  91. 0        128+?    Filetype
  92.                   0-DEL, 1-SEQ, 2-PRG,
  93.                   3-USR and 4-REL. 
  94. 1-2      ?-?      Track and sector o/t
  95.                   first sector o/t file
  96. 3-18     ?        File name filled
  97.                   with Shift-Space.
  98. 19-21    ?        reservated for REL
  99.                   files. see manual.
  100. 22-25    ?        Unused.
  101.  
  102. 26-27    ?-?      Only used with '@0'
  103. 28-29    X-Y      Size of the file.
  104.                   X+(Y*255).
  105.  
  106. To change something we need a disk
  107. monitor!!!
  108. I use DISKDOCTER .It's public
  109. domain ,only 13 blocks and it's easy 
  110. to use !!!
  111. look for further information in the 
  112. following short manual .
  113.  
  114.  
  115. D I S K D O C T E R
  116. ******************* 
  117.  
  118. After booting it it will ask you 
  119. to place the desired disk in the drive
  120. and to press a key. You wil now see
  121.  
  122. a screen in which you can give the 
  123. desired track and sector.
  124. Normally this will be track 18, 
  125. sector 0 !!!!
  126. After you made your choise you can 
  127. split the screen in 3 parts.
  128.  
  129. the header
  130. **********
  131. In the upper left corner you will see
  132. the name of the programmer.
  133. Right next to it there is written which
  134. drive you use and the DOS version.
  135. The upper right corner tells you the
  136. actual track and sector.
  137. In the leftbottom you'll see the
  138. place-number o/t cursor.
  139. Next to it are the decimal ,hexa-
  140. decimal and ascii values o/t byte
  141.  
  142. under the cursor.
  143. Next to that is the orginal ID with
  144. which the disk has been formatted in
  145. dec. , hex. and ascii values.
  146. In the right bottom are the track 
  147. and sector to which the the drive will
  148. go shown. We call this the 'LINK'.
  149.  
  150. The middle part
  151. ***************
  152. In this you can see 256 bytes what
  153. makes a complete block.
  154. You can change the bytes!!!
  155.  
  156. the bottom piece
  157. ****************
  158. The insructions you can use are written
  159. in here !!!!
  160.  
  161.  
  162. B = choose a new Track and Sector.
  163. + = next Sector (sector=sector+1).
  164. - = previous Sector (sector=sector-1).
  165. @ = change the value of the byte 
  166.     under the cursor.
  167. P = get orginal ID (not nessecary)
  168. L = next sector (follow the link).
  169. R = write block to disk (with the
  170.     changes)
  171. T = Type a text from the cursor pos.
  172.     RETURN = end.
  173. Q = quit the programm.
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.       -->
  181.  
  182. T R I C K ' S
  183. *************
  184.  
  185. Use, if you try this tricks, an old
  186. disk. Format this disk and look at it
  187. (in the disk-monitor of course ..).     Then save some programms on it and try
  188. the following tricks. 
  189.  
  190. Track 18   Sector 0   Byte 2
  191. ****************************
  192. this adres contains a 'A'. If you 
  193. change it in a 'B' you can't save 
  194. anything anymore on your disk. 
  195. A nice protection for your disks!!!
  196.  
  197.  
  198.  
  199.  
  200.  
  201. Track 18   Sector 1-18  Byte 0 & 1
  202. **********************************
  203. If you change the link bytes of the 
  204. last directory sector so that they 
  205. point to the first DIRECTORY sector.
  206. You'll get a never ending DIRECTORY!!
  207.  
  208. Track 18   Sector 0   Byte 171-255
  209. **********************************
  210. You can place some text in these bytes.
  211. 'cause the drive doesn't use them!!
  212.  
  213. Track 18   Sector 0   Byte 144-166
  214. **********************************
  215. These adresses are containing the
  216. diskname,ID and DOS-type.
  217. You can change these
  218. into whatever you want!!!
  219.  
  220.  
  221. Track 18   Sector 1-18  Filenames
  222. *********************************
  223. If there's free space you can type
  224. behind a filename ',8' or ',8,1:' but
  225. you have to skip one shift-space.
  226. If you don't skip a shift-space the 
  227. extra entered text will stand between
  228. the quotation marks (your filename 
  229. will be larger). 
  230.  
  231. Track 18   Sector 1-18
  232. **********************
  233. You can also put a special sign (like
  234. a color or a clr-home) for your
  235. filename. When you load 
  236. this file the sign will be executed.
  237. First type the sign and then
  238. the filename ,it doesn't matter if you
  239. seperate them by a shift-space.
  240.  
  241. Track 18   Sector 1-18
  242. **********************
  243. In byte 28 and 29 o/t filename you can
  244. simply change the blocks o/t file.
  245. You can change them into a value 
  246. between 0 and 65525.
  247. Byte 29 is the size from  0 to 255
  248. blocks, byte 28 is the value times 256
  249.  
  250. Track 18   Sector 1-18
  251. **********************
  252. Byte 0 o/t filename contains the type 
  253. o/t file. You can change these types.
  254. You can also get back a lost file by
  255. changing his type !!!!
  256.  
  257.  
  258.