+jedimatt42 Posted March 31 Share Posted March 31 So, I've called level 2 floppy disk format subprogram 0x11 in the disk controller and get back my formatted ( low level, no filesystem ) disk, with the total sectors returned. Then I have to construct the filesystem... which is basically echoing the format parameters, the volume name, some flags, and the available sector bitmap to sector 0. I see the docs for the Myarc HFDC that says the interleave can be varied. But their description of the sector 0 layout is unchanged from TI's. The interleave in the format request goes in the 'Density' byte when making the request. Does it also need to go in the 'Density' byte in sector 0, or does it go in the track metadata that is encapsulating sectors? 1 Quote Link to comment https://forums.atariage.com/topic/364203-floppy-formatter-from-code-questions/ Share on other sites More sharing options...
+InsaneMultitasker Posted March 31 Share Posted March 31 42 minutes ago, jedimatt42 said: The interleave in the format request goes in the 'Density' byte when making the request. Does it also need to go in the 'Density' byte in sector 0, or does it go in the track metadata that is encapsulating sectors? The interleave value is not retained within the sector 0 density byte. There is a good working summary of the Volume Information Block (VIB) via ninerpedia: https://www.ninerpedia.org/wiki/File_systems. Perhaps worth noting: High-density (3) is intended for use with the HFDC and Geneve for high density disks, e.g. 1.44MB. Ultra-density (4) is used to extend beyond the physical disk capacity for ramdisk applicatons, e.g., 12,800 sector format. Data chain pointers (clusters) are calculated differently for these two cases. With respect to the bitmap and allocated sectors, it is best practice (I would prefer to say "required") to set the corresponding bits in the bitmap for both (1) the used sectors and (2) the sector(s) beyond the formatted capacity. Strange things happen with some DSRs and software if the total sector count and bitmap allocation do not match, usually due to one or more boundary-related assumptions. I do not recall if this is mentioned in the TI or Myarc documentation. 4 1 Quote Link to comment https://forums.atariage.com/topic/364203-floppy-formatter-from-code-questions/#findComment-5440650 Share on other sites More sharing options...
+jedimatt42 Posted March 31 Author Share Posted March 31 regarding the bitmap, yes, it is required to set the inaccessible sectors as used. The TI FDC calculates available sectors based on that bitmap. "... HFDC and Geneve for high desnity disks" <- does that mean the HFDC did not support high density on a 4A? 1 Quote Link to comment https://forums.atariage.com/topic/364203-floppy-formatter-from-code-questions/#findComment-5440705 Share on other sites More sharing options...
+InsaneMultitasker Posted March 31 Share Posted March 31 12 minutes ago, jedimatt42 said: "... HFDC and Geneve for high desnity disks" <- does that mean the HFDC did not support high density on a 4A? Yes and no. The hardware supports high density on both the /4a and Geneve, however, the HFDC's /4A DSR (software) was never finalized/updated to support the necessary file structure calculations. 3 1 Quote Link to comment https://forums.atariage.com/topic/364203-floppy-formatter-from-code-questions/#findComment-5440718 Share on other sites More sharing options...
+InsaneMultitasker Posted April 1 Share Posted April 1 19 hours ago, jedimatt42 said: regarding the bitmap, yes, it is required to set the inaccessible sectors as used Agreed. It took me a while to remember where I read the statement regarding inaccessible sectors. See screenshot from "Software Specification for the 99_4 Disk Peripheral V2.0 03-28-1983": 4 Quote Link to comment https://forums.atariage.com/topic/364203-floppy-formatter-from-code-questions/#findComment-5441208 Share on other sites More sharing options...
apersson850 Posted April 2 Share Posted April 2 The interleave factors of sectors in a track is then stored in the sector headers in the track itself, not in any directory. At least that's how it works with the CorComp controller. I've not experimented with this with any other controller. 1 Quote Link to comment https://forums.atariage.com/topic/364203-floppy-formatter-from-code-questions/#findComment-5441790 Share on other sites More sharing options...
+mizapf Posted April 2 Share Posted April 2 You mean stored as the sequence of sectors, identified by their header, right? Apart from that, there is no single field on the track that tells us about the interleave. 1 Quote Link to comment https://forums.atariage.com/topic/364203-floppy-formatter-from-code-questions/#findComment-5441859 Share on other sites More sharing options...
apersson850 Posted April 2 Share Posted April 2 No, there is no table or such. They show up as a surprise. You read them and if you find the correct one, you use it. If not, you read the next. 2 Quote Link to comment https://forums.atariage.com/topic/364203-floppy-formatter-from-code-questions/#findComment-5441874 Share on other sites More sharing options...
+FarmerPotato Posted April 2 Share Posted April 2 4 hours ago, apersson850 said: No, there is no table or such. They show up as a surprise. You read them and if you find the correct one, you use it. If not, you read the next. Originally documented in Shugart manuals, for instance SA-850 drive. The allocation bitmap rules in 99/4 Disk Interface are the same as you'd find in other 990 operating systems. Under Floppy Disk Physical Format, in TX990 and DX10 Systems Programmer Guides. Except that the allocation map was spread over many sectors of track 0, supporting 1.2 MB floppies. Weirdly, AU size could be 1 sector or a multiple of three. Quote Link to comment https://forums.atariage.com/topic/364203-floppy-formatter-from-code-questions/#findComment-5442026 Share on other sites More sharing options...
apersson850 Posted April 2 Share Posted April 2 (edited) I read about it in the data sheet for the disk controller on the Corcomp card I have. WD 2793 I think it is, without checking. Edited April 2 by apersson850 Quote Link to comment https://forums.atariage.com/topic/364203-floppy-formatter-from-code-questions/#findComment-5442034 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.