Posted By
JamesC on 2015-02-20 09:09:56
| Re: Directory Browser V1.0
I edited yesterday's post to reflect that the partition (subdirectory) needs to be formatted before use.
@Carrion: 1. I don't know. Maybe a VICE user can answer.
2. You can only use whole tracks in a partition. There are 80 tracks on a 1581, each track holding 40 blocks. Track 40 is reserved for the root directory. On a blank 1581 disk, this results in 3160 blocks free.
Therefore the largest partition possibilities are: a. Tracks 1 through 39 (x 40 blocks each = 1560 blocks) b. Tracks 41 through 80 (x 40 blocks each = 1600 blocks)
To reserve tracks 1 through 39: 1560 / 255 = 6 with 30 remaining: PRINT#15, "/0:partition name"+CHR$(1)+CHR$(0)+CHR$(30)+CHR$(6)+",C"
To reserve tracks 41 through 80: 1600 / 255 = 6 with 70 remaining: PRINT#15, "/0:partition name"+CHR$(41)+CHR$(0)+CHR$(70)+CHR$(6)+",C"
Remember to enter your new partition, and then HEADER it, before trying to store anything in it. :)
I think it handy to have several 1541-size partitions on a 1581: a. Tracks 1 through 17 (680 blocks - track 1 reserved for directory = 640 blocks free) b. Tracks 18 through 34 (680 blocks - track 18 reserved for directory = 640 blocks free) c. Tracks 47 through 63 (680 blocks - track 47 reserved for directory = 640 blocks free) d. Tracks 64 through 80 (680 blocks - track 64 reserved for directory = 640 blocks free) ... leaving tracks 35 through 39, and 41 through 46, for programs/data in the root directory (440 blocks free).
To create the 1541-size partitions, you could use this line, where TR is the starting track from a through d: PRINT#15, "/0:partition name"+CHR$( TR )+CHR$(0)+CHR$(170)+CHR$(2)+",C"
|