RE: Hübner & Worm Hard-Disk 24MB for PET

From: Baltissen, GJPAA (Ruud) <"Baltissen,>
Date: Wed, 9 Sep 2020 07:28:28 +0000
Message-ID: <AM6PR10MB23608661B5A0EFD87FC5D926E1260_at_AM6PR10MB2360.EURPRD10.PROD.OUTLOOK.COM>
> PS: Now someone have to convert the code to 6502 assembler for the 8250 to use subdirectories ;)

I think that would be more work than writing it from scratch. I implemented it in my CBM-HD project, a 1541 with HDD onboard. A subdirectory is nothing more then another file but its layout is just like a normal directory. In my case its first file is the well known ".." which has two purposes: 1) the user can see it is a subdirectory and 2) I can store the information of its parent directory here. If I need to store more files in this directory than the sector can store, another sector is added. In contrary to the root directory that uses a reserved track, the first free sector is added. The advantage: there is almost no limit to the number of files a subdirectory can contain. The "almost" is the size of the disk of course. IIRC the 1581 uses $85 for marking a file as subdirectory, I used $86.

Next you have to create equivalents of MD, CD and RD. MD is IMHO the most simple one: just create a file and give it the correct structure. RD can be simple as well: scratch the directory file if it is empty. It becomes more difficult if you want to add DELTREE like features. CD can be simple as well: it just changes the pointer to where the 8250 should start (if the subdirectory exists).

What pointer, you may ask? When you perform a DIRECTORY or LOAD "$",x then the drive automatically starts to look at the first sector of its directory track. This behavior has to be changed. You should tell it to load a pointer that on its turn points to the track/sector combination where the drive should start its search.

I hope this helps.


With kind regards / met vriendelijke groet, Ruud Baltissen

http://www.baltissen.org



De informatie in dit e-mailbericht is vertrouwelijk en uitsluitend bestemd voor de 
geadresseerde. Wanneer u dit bericht per abuis ontvangt, verzoeken wij u contact op te 
nemen met de afzender per kerende e-mail. Verder verzoeken wij u in dat geval dit 
e-mailbericht te vernietigen en de inhoud ervan aan niemand openbaar te maken. 
Wij aanvaarden geen aansprakelijkheid voor onjuiste, onvolledige dan wel ontijdige 
overbrenging van de inhoud van een verzonden e-mailbericht, noch voor daarbij 
overgebrachte virussen.

APG Groep N.V. is gevestigd te Heerlen en is ingeschreven in het 
handelsregister van de Kamer van Koophandel Limburg onder nummer 14099617


The information contained in this e-mail is confidential and may be privileged. 
It may be read, copied and used only by the intended recipient. 
If you have received it in error, please contact the sender immediately by 
return e-mail; please delete in this case the e-mail and do not disclose its 
contents to any person. We don't accept liability for any errors, omissions, 
delays of receipt or viruses in the contents of this message which arise as a 
result of e-mail transmission.

APG Groep N.V. is registered in the trade register of the Chamber 
of Commerce Limburg, The Netherlands, registration number: 14099617
Received on 2020-09-09 10:00:03

Archive generated by hypermail 2.3.0.